gpg: Improve error code from lock_all.
authorWerner Koch <wk@gnupg.org>
Wed, 13 Jan 2016 13:48:02 +0000 (14:48 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 13 Jan 2016 13:48:02 +0000 (14:48 +0100)
* g10/keydb.c (lock_all): Do not clobber RC during failur cleanup.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c

index 3ee9dfd..cf7b990 100644 (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;
             }
         }