mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
Fix error check.
This commit is contained in:
parent
63dd3b9a43
commit
7629ac332c
@ -1,5 +1,7 @@
|
|||||||
2011-10-13 Marcus Brinkmann <marcus@g10code.com>
|
2011-10-13 Marcus Brinkmann <marcus@g10code.com>
|
||||||
|
|
||||||
|
* cache.c (new_data): Fix error check.
|
||||||
|
|
||||||
* cache.c, call-pinentry.c, call-scd.c, findkey.c, gpg-agent.c,
|
* cache.c, call-pinentry.c, call-scd.c, findkey.c, gpg-agent.c,
|
||||||
trustlist.c: Port to NPth.
|
trustlist.c: Port to NPth.
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ new_data (const char *string, struct secret_data_s **r_data)
|
|||||||
d_enc->totallen = total;
|
d_enc->totallen = total;
|
||||||
res = npth_mutex_lock (&encryption_lock);
|
res = npth_mutex_lock (&encryption_lock);
|
||||||
if (res)
|
if (res)
|
||||||
log_fatal ("failed to acquire cache encryption mutex: %s\n", strerror (err));
|
log_fatal ("failed to acquire cache encryption mutex: %s\n", strerror (res));
|
||||||
err = gcry_cipher_encrypt (encryption_handle, d_enc->data, total,
|
err = gcry_cipher_encrypt (encryption_handle, d_enc->data, total,
|
||||||
d->data, total - 8);
|
d->data, total - 8);
|
||||||
xfree (d);
|
xfree (d);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user