Mercurial > hg
changeset 2208:7c843b29571b
Fix changeset fec172dbacc7
The PGP signature key id was not reported correctly.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 18 Oct 2015 21:02:36 +0200 |
parents | 3a4a3a180c9c |
children | 412322678d59 |
files | mcabber/mcabber/pgp.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/pgp.c Sat Oct 17 20:31:09 2015 +0200 +++ b/mcabber/mcabber/pgp.c Sun Oct 18 21:02:36 2015 +0200 @@ -264,9 +264,7 @@ 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)) {