aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keydb.c')
-rw-r--r--g10/keydb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/keydb.c b/g10/keydb.c
index 3d95f511a..06c78f048 100644
--- a/g10/keydb.c
+++ b/g10/keydb.c
@@ -1012,6 +1012,9 @@ lock_all (KEYDB_HANDLE hd)
To fix this we need to use a lock file to protect lock_all. */
+ if (hd->keep_lock)
+ return 0;
+
for (i=0; !rc && i < hd->used; i++)
{
switch (hd->active[i].type)