1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-07-09 03:44:18 +02:00

Fix error check.

This commit is contained in:
Marcus Brinkmann 2011-10-13 17:49:45 +02:00
parent 63dd3b9a43
commit 7629ac332c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
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,
trustlist.c: Port to NPth.

View File

@ -185,7 +185,7 @@ new_data (const char *string, struct secret_data_s **r_data)
d_enc->totallen = total;
res = npth_mutex_lock (&encryption_lock);
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,
d->data, total - 8);
xfree (d);