aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-11-30 19:03:08 (GMT)
committerJouni Malinen <j@w1.fi>2018-11-30 19:28:19 (GMT)
commit10c83475b8558872d770b32c66dbc433e31c352e (patch)
treebb18240cf2a8abd3e09b28c7c9aac03695957feb /hostapd
parent02270284442aecabb06d1376ad9bd388b3d3791c (diff)
downloadhostap-10c83475b8558872d770b32c66dbc433e31c352e.zip
hostap-10c83475b8558872d770b32c66dbc433e31c352e.tar.gz
hostap-10c83475b8558872d770b32c66dbc433e31c352e.tar.bz2
Fix hostapd testing functionality for setting key/seq
Use sizeof() correctly on seq[]. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index e539a09..75f12e5 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -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 != ' ')