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-Tag: onak-0.4.1~6 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=b5ff00f53ac25452bd2d074b21b2eb36ea345d4a;p=onak.git 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));