From b6390a543c22add446f24ca6e4a28d9c5b7f49e8 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Wed, 13 Nov 2013 21:39:14 -0800 Subject: [PATCH] Fix deletion of 64 bit keys in DB4 backend We were using the cursor from the id32db instead of the one for the id64db. --- keydb_db4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keydb_db4.c b/keydb_db4.c index 288e467..3e4a039 100644 --- a/keydb_db4.c +++ b/keydb_db4.c @@ -1032,13 +1032,13 @@ static int db4_delete_key(struct onak_dbctx *dbctx, data.data = fingerprint.fp; data.size = fingerprint.length; - ret = cursor->c_get(cursor, + ret = cursor64->c_get(cursor64, &key, &data, DB_GET_BOTH); if (ret == 0) { - ret = cursor->c_del(cursor, 0); + ret = cursor64->c_del(cursor64, 0); } if (ret != 0 && ret != DB_NOTFOUND) { -- 2.39.2