From b5ff00f53ac25452bd2d074b21b2eb36ea345d4a Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sun, 1 Apr 2012 17:24:18 -0700 Subject: [PATCH 1/1] Add missing initialisation of DB4 cursor for skshash when deleting key We were trying to use the id32db cursor which had already been closed. --- keydb_db4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keydb_db4.c b/keydb_db4.c index 638be28..065fb5b 100644 --- a/keydb_db4.c +++ b/keydb_db4.c @@ -1013,6 +1013,10 @@ static int db4_delete_key(uint64_t keyid, bool intrans) } if (!deadlock) { + ret = skshashdb->cursor(skshashdb, + txn, + &cursor, + 0); /* flags */ get_skshash(publickey, &hash); memset(&key, 0, sizeof(key)); -- 2.39.5