From b004701adca89ba85f75e12a4d284297147fe4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 30 Oct 2020 15:49:27 +0100 Subject: [PATCH] gpg: Fix iteration over signatures * g10/keyedit.c (keyedit_quick_revsig): Take signature of correct node -- GnuPG-bug-id: 5093 --- g10/keyedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/keyedit.c b/g10/keyedit.c index 9f4aad24a..596662dda 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -2880,7 +2880,7 @@ keyedit_quick_revsig (ctrl_t ctrl, const char *username, const char *sigtorev, sigcount = 0; for (n=node; n && n->pkt->pkttype == PKT_SIGNATURE; node=n, n=n->next) { - sig = node->pkt->pkt.signature; + sig = n->pkt->pkt.signature; if (!keyid_cmp (primarykid, sig->keyid)) continue; /* Ignore self-signatures. */