From: Jouni Malinen Date: Sat, 25 May 2013 16:55:32 +0000 (+0300) Subject: Fix ESS_DISASSOC ctrl_iface command parser X-Git-Tag: aosp-kk-from-upstream~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb4737f6df53079ded33825323fb3217bd625f57;p=thirdparty%2Fhostap.git Fix ESS_DISASSOC ctrl_iface command parser strchr can return NULL and that needs to be checked instead of what the pointer could be pointing to. Signed-hostap: Jouni Malinen --- 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);