projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cd7f1b9
)
Fix ESS_DISASSOC ctrl_iface command parser
author
Jouni Malinen
<j@w1.fi>
Sat, 25 May 2013 16:55:32 +0000
(19:55 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sat, 25 May 2013 16:55:32 +0000
(19:55 +0300)
strchr can return NULL and that needs to be checked instead of what the
pointer could be pointing to.
Signed-hostap: Jouni Malinen <j@w1.fi>
hostapd/ctrl_iface.c
patch
|
blob
|
history
diff --git
a/hostapd/ctrl_iface.c
b/hostapd/ctrl_iface.c
index
dc9ede7
..
021cbe5
100644
(file)
--- 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);