From de8d84cd073f71706e27b8aef8238f70c8bc3999 Mon Sep 17 00:00:00 2001 From: Johannes Roth Date: Tue, 7 Nov 2023 17:21:44 +0100 Subject: [PATCH] give salg a defined value when parsing pkesk --- src/librepgp/stream-packet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librepgp/stream-packet.cpp b/src/librepgp/stream-packet.cpp index 94461a2767..18ef545b1f 100644 --- a/src/librepgp/stream-packet.cpp +++ b/src/librepgp/stream-packet.cpp @@ -1133,6 +1133,9 @@ pgp_pk_sesskey_t::parse(pgp_source_t &src) } alg = (pgp_pubkey_alg_t) bt; + /* symmetric algorithm */ + salg = PGP_SA_UNKNOWN; + /* raw signature material */ if (!pkt.left()) { RNP_LOG("No encrypted material");