From a17f1b607473f5aae081ffe22381dda2b54a7a6a Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 28 Sep 2021 14:49:21 +0900 Subject: [PATCH] gpg: Skip the packet when not used for AEAD. * g10/free-packet.c (free_packet): Add the case for case PKT_ENCRYPTED_AEAD. -- GnuPG-bug-id: 5584 Signed-off-by: NIIBE Yutaka (bug id fixed in this backport) --- g10/free-packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/g10/free-packet.c b/g10/free-packet.c index e15ad3f04..4df8896de 100644 --- a/g10/free-packet.c +++ b/g10/free-packet.c @@ -472,6 +472,7 @@ free_packet (PACKET *pkt, parse_packet_ctx_t parsectx) break; case PKT_ENCRYPTED: case PKT_ENCRYPTED_MDC: + case PKT_ENCRYPTED_AEAD: free_encrypted (pkt->pkt.encrypted); break; case PKT_PLAINTEXT: