mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fixed a bunch of little bugs as reported by Fabian Keil.
Still one problem left; marked with a gcc #warning.
This commit is contained in:
parent
e05aeca87b
commit
2e0ce7d97f
23 changed files with 79 additions and 29 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-06-24 Werner Koch <wk@g10code.com>
|
||||
|
||||
* genkey.c (agent_protect_and_store): Return RC and not 0.
|
||||
* protect.c (do_encryption): Fix ignored error code from malloc.
|
||||
Reported by Fabian Keil.
|
||||
|
||||
2009-06-17 Werner Koch <wk@g10code.com>
|
||||
|
||||
* call-pinentry.c (agent_get_confirmation): Add arg WITH_CANCEL.
|
||||
|
|
|
@ -480,5 +480,5 @@ agent_protect_and_store (ctrl_t ctrl, gcry_sexp_t s_skey)
|
|||
|
||||
rc = store_key (s_skey, pi? pi->pin:NULL, 1);
|
||||
xfree (pi);
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
|
|
@ -176,8 +176,11 @@ do_encryption (const unsigned char *protbegin, size_t protlen,
|
|||
iv = xtrymalloc (blklen*2+8);
|
||||
if (!iv)
|
||||
rc = gpg_error (GPG_ERR_ENOMEM);
|
||||
gcry_create_nonce (iv, blklen*2+8);
|
||||
rc = gcry_cipher_setiv (hd, iv, blklen);
|
||||
else
|
||||
{
|
||||
gcry_create_nonce (iv, blklen*2+8);
|
||||
rc = gcry_cipher_setiv (hd, iv, blklen);
|
||||
}
|
||||
}
|
||||
if (!rc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue