From 13e6ec6672d9a7c431870f4e956e8b798c4923db Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 12 Apr 2022 15:56:47 +0900 Subject: [PATCH] Allow issuer fpr in unhashed area. Signed-off-by: NIIBE Yutaka --- g10/parse-packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 7af5e6b40..863241800 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -2311,6 +2311,8 @@ parse_signature (IOBUF inp, int pkttype, unsigned long pktlen, * it is a v4 signature the fallback to the issuer. Note that * only the issuer packet is also searched in the unhashed area. */ p = parse_sig_subpkt (sig, 1, SIGSUBPKT_ISSUER_FPR, &len); + if (!p && sig->version == 5) + p = parse_sig_subpkt (sig, 0, SIGSUBPKT_ISSUER_FPR, &len); if (p && len == 21 && p[0] == 4) { sig->keyid[0] = buf32_to_u32 (p + 1 + 12);