# HG changeset patch # User Mikael Berthe # Date 1445194956 -7200 # Node ID 7c843b29571bafee0f2f674409acfbd266a8cb8a # Parent 3a4a3a180c9c9116af7d7dfe8115e12aee1b86cf Fix changeset fec172dbacc7 The PGP signature key id was not reported correctly. diff -r 3a4a3a180c9c -r 7c843b29571b mcabber/mcabber/pgp.c --- 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)) {