From: Jonathan McDowell Date: Mon, 2 Apr 2012 00:24:18 +0000 (-0700) Subject: Add missing initialisation of DB4 cursor for skshash when deleting key X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/b5ff00f53ac25452bd2d074b21b2eb36ea345d4a Add missing initialisation of DB4 cursor for skshash when deleting key We were trying to use the id32db cursor which had already been closed. --- 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));