Fix changeset fec172dbacc7
The PGP signature key id was not reported correctly.
--- 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)) {