X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/556f51f104fbbb5bd0d51b61a18d7e5af2759079..b1cb08b256587f6c5d2c484438d942e58583ba88:/merge.c?ds=sidebyside diff --git a/merge.c b/merge.c index cfe2d97..7f1773e 100644 --- a/merge.c +++ b/merge.c @@ -10,9 +10,9 @@ #include #include +#include "decodekey.h" #include "keydb.h" #include "keyid.h" -#include "keyindex.h" #include "keystructs.h" #include "ll.h" #include "mem.h" @@ -394,9 +394,9 @@ int update_keys(struct openpgp_publickey **keys, bool verbose) *keys = curkey->next; } else { prev->next = curkey->next; - prev = curkey->next; curkey->next = NULL; free_publickey(curkey); + curkey = prev; } } else { prev = curkey;