Skip to content

Commit

Permalink
give salg a defined value when parsing pkesk
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ-91 committed Nov 7, 2023
1 parent 5684aea commit de8d84c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librepgp/stream-packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit de8d84c

Please sign in to comment.