hostapd/src/wps
Jouni Malinen c9629476f3 WPS ER: Fix deinit timeout handling with delayed/failing unsubscribe
The five second timeout to call wps_er_deinit_finish() could potentially
be left behind when removing the ER data based on some other event. This
could result in double-freeing of wps_er context killing the process,
e.g., if the WPS ER functionality is stopped while in the process of
unsubscribing from an AP and then restarted.

In addition, AP entries could still be present in the
er->ap_unsubscribing list when the deinit timeout hits. These entries
would still maintain HTTP context pointing to the ER which would be
freed here and as such, the following HTTP client callback could refer
to freed memory and kill the process. Fix this by freeing AP entries
from ap_unsubscribing list when ER is deinitialized from timeout even if
such AP entries have not completed unsubscription from UPnP events.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
2013-12-26 20:50:28 +02:00
..
http.h WPS: Move POST URL validation into web_connection_parse_post() 2009-12-12 16:48:50 +02:00
http_client.c WPS: Do not use void* in arithmetic 2013-05-04 20:19:45 +03:00
http_client.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
http_server.c HTTP server: Allow TCP socket to be reused 2013-10-18 14:13:45 +03:00
http_server.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
httpread.c Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00
httpread.h Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
ndef.c WPS: Fetch only the carrier record from wpa_supplicant for NFC 2013-02-10 18:19:59 +02:00
upnp_xml.c WPS ER: Fix UPnP XML Device Description parser to find correct device 2011-08-31 13:56:03 +03:00
upnp_xml.h WPS ER: Fix UPnP XML Device Description parser to find correct device 2011-08-31 13:56:03 +03:00
wps.c WPS: Set currently used RF band in RF Bands attribute 2013-08-25 10:55:53 +03:00
wps.h P2P: Store P2P Device Address in per-device PSK records 2013-09-01 10:47:34 +03:00
wps_attr_build.c WPS NFC: Add debug log entry on OOB Dev Pw attribute addition 2013-11-07 13:48:42 +02:00
wps_attr_parse.c WPS: Use AP Channel attribute in credential to speed up scan 2012-10-28 18:02:04 +02:00
wps_attr_parse.h WPS: Use AP Channel attribute in credential to speed up scan 2012-10-28 18:02:04 +02:00
wps_attr_process.c WPS: Use AP Channel attribute in credential to speed up scan 2012-10-28 18:02:04 +02:00
wps_common.c WPS: Track peer MAC address from the last operations 2013-08-23 17:48:59 +03:00
wps_defs.h WPS: Track result of the latest WPS operation 2013-08-23 17:48:20 +03:00
wps_dev_attr.c WPS: Set currently used RF band in RF Bands attribute 2013-08-25 10:55:53 +03:00
wps_dev_attr.h WPS: Set currently used RF band in RF Bands attribute 2013-08-25 10:55:53 +03:00
wps_enrollee.c WPS: Ignore PBC-to-PIN change from M1 to M2 as a workaround 2013-09-14 12:02:33 -07:00
wps_er.c WPS ER: Fix deinit timeout handling with delayed/failing unsubscribe 2013-12-26 20:50:28 +02:00
wps_er.h WPS ER: Allow UPnP interface to be forced 2013-04-28 21:56:24 +03:00
wps_er_ssdp.c WPS ER: Allow UPnP interface to be forced 2013-04-28 21:56:24 +03:00
wps_i.h WPS: Track peer MAC address from the last operations 2013-08-23 17:48:59 +03:00
wps_registrar.c wps_registrar: Use monotonic time for PBC workaround 2013-12-24 07:54:40 +02:00
wps_upnp.c WPS_UPNP: Use monotonic time for event debouncing 2013-12-24 07:57:10 +02:00
wps_upnp.h WPS: Change concurrent radio AP to use only one WPS UPnP instance 2010-11-11 14:50:13 +02:00
wps_upnp_ap.c WPS NFC: Allow Device Password ID override for selected registrar 2013-04-27 22:14:31 +03:00
wps_upnp_event.c WPS UPnP: Add more priority for queuing EAP events 2010-10-17 21:30:25 +03:00
wps_upnp_i.h WPS ER: Allow UPnP interface to be forced 2013-04-28 21:56:24 +03:00
wps_upnp_ssdp.c WPS ER: Allow UPnP interface to be forced 2013-04-28 21:56:24 +03:00
wps_upnp_web.c Add dup_binstr() to help common binary string tasks 2013-04-27 23:44:59 +03:00
wps_validate.c Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00