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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue