X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=keydb%2Fkeydb.c;h=20f07d26d9528b91ef4480073315ad4444c84d5e;hp=692a7b7c902a42590b92d5ec29cbdc01e409e714;hb=743957a08f068529d3add3e8485678b4e5034195;hpb=8e4c1600cae6c6d71ec0c8843d11354842a4feba diff --git a/keydb/keydb.c b/keydb/keydb.c index 692a7b7..20f07d2 100644 --- a/keydb/keydb.c +++ b/keydb/keydb.c @@ -315,7 +315,6 @@ static int generic_fetch_key(struct onak_dbctx *dbctx, if (get_fingerprint(curkey->publickey, &fp) == ONAK_E_OK) { if (fingerprint_cmp(fingerprint, &fp) == 0) { *newkey = curkey; - curkey = curkey->next; (*newkey)->next = NULL; count = 1; break;