diff options
Diffstat (limited to 'lib/signature.c')
-rw-r--r-- | lib/signature.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/signature.c b/lib/signature.c index eec5ff7a3..c5a06de16 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -476,12 +476,12 @@ verifySignature(rpmKeyring keyring, pgpDig dig, DIGEST_CTX hashctx, int isHdr, char *sigid = NULL; *msg = NULL; pgpDigParams sig = pgpDigGetParams(dig, PGPTAG_SIGNATURE); - pgpDigParams pub = pgpDigGetParams(dig, PGPTAG_PUBLIC_KEY); /* Call verify even if we dont have a key for a basic sanity check */ if (sig) { (void) rpmKeyringLookup(keyring, dig); - res = pgpVerifySignature(pub, sig, hashctx); + res = pgpVerifySignature(pgpDigGetParams(dig, PGPTAG_PUBLIC_KEY), + sig, hashctx); sigid = pgpIdentItem(sig); rasprintf(msg, "%s%s: %s\n", isHdr ? _("Header ") : "", sigid, |