mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Fix hostapd testing functionality for setting key/seq
Use sizeof() correctly on seq[]. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
0227028444
commit
10c83475b8
@ -2134,7 +2134,7 @@ static int hostapd_ctrl_set_key(struct hostapd_data *hapd, const char *cmd)
|
||||
if (!pos)
|
||||
return -1;
|
||||
pos++;
|
||||
if (hexstr2bin(pos, seq, sizeof(6)) < 0)
|
||||
if (hexstr2bin(pos, seq, sizeof(seq)) < 0)
|
||||
return -1;
|
||||
pos += 2 * 6;
|
||||
if (*pos != ' ')
|
||||
|
Loading…
Reference in New Issue
Block a user