Skip to content

Commit

Permalink
lib/crypto: Initialize variable contents (CID 1450806)
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Benden <joe@benden.us>
  • Loading branch information
jbenden committed Jul 30, 2021
1 parent 651e230 commit c2d1f79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/crypto/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,8 @@ int decrypt_ccmp(unsigned char * h80211,
unsigned char PN[6], AAD[32];
AES_KEY aes_ctx;

memset(&aes_ctx, 0, sizeof(aes_ctx));

is_a4 = (h80211[1] & 3) == 3;
is_qos = (h80211[0] & 0x8C) == 0x88;
z = 24 + 6 * is_a4;
Expand Down

0 comments on commit c2d1f79

Please sign in to comment.