projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add missing initialisation of DB4 cursor for skshash when deleting key
[onak.git]
/
keydb_db4.c
diff --git
a/keydb_db4.c
b/keydb_db4.c
index 638be28dc2583afe5932cdceeb5df0c785882f5a..065fb5b690364099d3f06c90e6a41a4c1742cf62 100644
(file)
--- 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));