From 9b6c91469a804c60289a2ed21334dfd856c294bb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 13 Jan 2016 14:48:02 +0100 Subject: gpg: Improve error code from lock_all. * g10/keydb.c (lock_all): Do not clobber RC during failur cleanup. Signed-off-by: Werner Koch --- g10/keydb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/keydb.c') diff --git a/g10/keydb.c b/g10/keydb.c index 3ee9dfd4e..cf7b99002 100644 --- a/g10/keydb.c +++ b/g10/keydb.c @@ -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; } } -- cgit v1.2.3