From 9dd83fc44345102eca8c34a1664ecd6124096726 Mon Sep 17 00:00:00 2001 From: Mikael Berthe Date: Sun, 18 Oct 2015 21:02:36 +0200 Subject: [PATCH] Fix changeset fec172dbacc7 The PGP signature key id was not reported correctly. --- mcabber/mcabber/pgp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mcabber/mcabber/pgp.c b/mcabber/mcabber/pgp.c index 7905328..d0ea161 100644 --- a/mcabber/mcabber/pgp.c +++ b/mcabber/mcabber/pgp.c @@ -264,9 +264,7 @@ char *gpg_verify(const char *gpg_data, const char *text, if (vr && vr->signatures) { gpgme_signature_t s = NULL; // check all signatures and stop if the first could be verified - for (s = vr->signatures; - (s != NULL) && (verified_key != NULL); - s = s->next) { + for (s = vr->signatures; s && !verified_key; s = s->next) { // Found the fingerprint. Let's try to get the key id. if (NULL != s->fpr) { if (!gpgme_get_key(ctx, s->fpr, &key, 0)) { -- 2.11.4.GIT