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:
Jouni Malinen 2018-11-30 21:03:08 +02:00 committed by Jouni Malinen
parent 0227028444
commit 10c83475b8

View File

@ -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 != ' ')