Skip to content

Commit

Permalink
avoid use of uninitialized variables in ikev2_pld_notify()
Browse files Browse the repository at this point in the history
  • Loading branch information
linderd committed Dec 4, 2023
1 parent cabc947 commit eddf7c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions iked/ikev2_pld.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,9 +1048,10 @@ ikev2_pld_notify(struct iked *env, struct ikev2_payload *pld,
{
struct ikev2_notify n;
const struct iked_sa *sa = msg->msg_sa;
uint8_t *buf, md[SHA_DIGEST_LENGTH];
uint32_t spi32;
uint64_t spi64;
uint8_t *buf;
uint8_t md[SHA_DIGEST_LENGTH] = {0};
uint32_t spi32 = 0;
uint64_t spi64 = 0;
struct iked_spi *rekey;
uint16_t type;
uint16_t signature_hash;
Expand Down

0 comments on commit eddf7c7

Please sign in to comment.