projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f3b8b4
)
Fix TRACK_STA_LIST before BSS enabled
author
Jouni Malinen
<jouni@qca.qualcomm.com>
Fri, 19 Aug 2016 13:26:48 +0000
(16:26 +0300)
committer
Jouni Malinen
<j@w1.fi>
Fri, 19 Aug 2016 13:26:48 +0000
(16:26 +0300)
This hostapd control interface command could hit a NULL pointer
dereference if issued before the BSS was enabled.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/ctrl_iface.c
patch
|
blob
|
history
diff --git
a/hostapd/ctrl_iface.c
b/hostapd/ctrl_iface.c
index
4e7b58e
..
5f3d6bd
100644
(file)
--- a/
hostapd/ctrl_iface.c
+++ b/
hostapd/ctrl_iface.c
@@
-2040,6
+2040,9
@@
static int hostapd_ctrl_iface_track_sta_list(struct hostapd_data *hapd,
struct hostapd_sta_info *info;
struct os_reltime now;
+ if (!iface->num_sta_seen)
+ return 0;
+
sta_track_expire(iface, 0);
pos = buf;