1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Improve error code from lock_all.

* g10/keydb.c (lock_all): Do not clobber RC during failur cleanup.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-01-13 14:48:02 +01:00
parent 8f1368d5e3
commit 9b6c91469a
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1003,7 +1003,7 @@ lock_all (KEYDB_HANDLE hd)
keyring_lock (hd->active[i].u.kr, 0);
break;
case KEYDB_RESOURCE_TYPE_KEYBOX:
rc = keybox_lock (hd->active[i].u.kb, 0);
keybox_lock (hd->active[i].u.kb, 0);
break;
}
}