]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix hostapd testing functionality for setting key/seq
authorJouni Malinen <jouni@codeaurora.org>
Fri, 30 Nov 2018 19:03:08 +0000 (21:03 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 30 Nov 2018 19:28:19 +0000 (21:28 +0200)
Use sizeof() correctly on seq[].

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/ctrl_iface.c

index e539a0902c770021c3c4837631560d422d45e51b..75f12e543f210ddb369f5bfa34db2654d9cf15bf 100644 (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 != ' ')