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:
parent
8f1368d5e3
commit
9b6c91469a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user