diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index f1a99e7169..5b346a8253 100644 --- a/rpmio/rpmpgp.c +++ b/rpmio/rpmpgp.c @@ -1068,6 +1068,8 @@ int pgpPrtParams(const uint8_t * pkts, size_t pktlen, unsigned int pkttype, break; p += (pkt.body - pkt.head) + pkt.blen; + if (pkttype == PGPTAG_SIGNATURE) + break; } rc = (digp && (p == pend)) ? 0 : -1;