projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2f7400
)
Fix ctrl_iface get-STA-MIB for WPS disabled case
author
Jouni Malinen
<jouni.malinen@atheros.com>
Mon, 29 Mar 2010 16:59:16 +0000
(09:59 -0700)
committer
Jouni Malinen
<j@w1.fi>
Mon, 29 Mar 2010 16:59:16 +0000
(09:59 -0700)
The previous version would crash here on NULL pointer dereference if
WPS was disabled.
src/ap/wps_hostapd.c
patch
|
blob
|
history
diff --git
a/src/ap/wps_hostapd.c
b/src/ap/wps_hostapd.c
index
d5145f0
..
cc05813
100644
(file)
--- a/
src/ap/wps_hostapd.c
+++ b/
src/ap/wps_hostapd.c
@@
-894,5
+894,7
@@
static void hostapd_wps_upnp_deinit(struct hostapd_data *hapd)
int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
char *buf, size_t buflen)
{
+ if (hapd->wps == NULL)
+ return 0;
return wps_registrar_get_info(hapd->wps->registrar, addr, buf, buflen);
}