summaryrefslogtreecommitdiffstats
path: root/g10/keydb.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-01-13 14:48:02 +0100
committerWerner Koch <wk@gnupg.org>2016-01-13 14:48:02 +0100
commit9b6c91469a804c60289a2ed21334dfd856c294bb (patch)
treee2f6728610d0db549858b31ccf6d098639f8e9fb /g10/keydb.c
parentkbx: Improve and fix keybox_lock. (diff)
downloadgnupg2-9b6c91469a804c60289a2ed21334dfd856c294bb.tar.xz
gnupg2-9b6c91469a804c60289a2ed21334dfd856c294bb.zip
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>
Diffstat (limited to '')
-rw-r--r--g10/keydb.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}