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
|
@ -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