diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index e539a0902..75f12e543 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 != ' ')