Skip to content

Commit

Permalink
lib/crypto: Initialize variable contents (CID 1450809)
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 c75fb84 commit 3b09f9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/crypto/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ encrypt_wep(unsigned char * data, int len, unsigned char * key, int keylen)
{
RC4_KEY S;

memset(&S, 0, sizeof(S));
RC4_set_key(&S, keylen, key);
RC4(&S, (size_t) len, data, data);

Expand Down

0 comments on commit 3b09f9b

Please sign in to comment.