mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-29 08:14:02 -05:00
Fix ctrl_iface get-STA-MIB for WPS disabled case
The previous version would crash here on NULL pointer dereference if WPS was disabled.
This commit is contained in:
parent
e2f74005f5
commit
a042f8447d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user