diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index dc9ede738..021cbe579 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -556,7 +556,7 @@ static int hostapd_ctrl_iface_ess_disassoc(struct hostapd_data *hapd, return -1; url = os_strchr(timerstr, ' '); - if (*url != ' ') + if (url == NULL) return -1; url++; url_len = os_strlen(url);