diff options
author | Ingo Klöcker <dev@ingo-kloecker.de> | 2020-10-30 15:49:27 +0100 |
---|---|---|
committer | Ingo Klöcker <dev@ingo-kloecker.de> | 2020-11-02 09:14:03 +0100 |
commit | b004701adca89ba85f75e12a4d284297147fe4f2 (patch) | |
tree | 4a4633ae6981a2541214b9609b6819787d7f1ad5 /g10/keyedit.c | |
parent | kbx: Don't put zero-byte for ECC. (diff) | |
download | gnupg2-b004701adca89ba85f75e12a4d284297147fe4f2.tar.xz gnupg2-b004701adca89ba85f75e12a4d284297147fe4f2.zip |
gpg: Fix iteration over signatures
* g10/keyedit.c (keyedit_quick_revsig): Take signature of correct node
--
GnuPG-bug-id: 5093
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r-- | g10/keyedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |