aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-04-12 06:56:47 +0000
committerNIIBE Yutaka <[email protected]>2022-04-12 06:56:47 +0000
commit13e6ec6672d9a7c431870f4e956e8b798c4923db (patch)
treef213e300f3e6379190841c68d49ca6bb593ba541
parentAllow no uidnode for v5 key. (diff)
downloadgnupg-13e6ec6672d9a7c431870f4e956e8b798c4923db.tar.gz
gnupg-13e6ec6672d9a7c431870f4e956e8b798c4923db.zip
Allow issuer fpr in unhashed area.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--g10/parse-packet.c2
1 files changed, 2 insertions, 0 deletions
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);