WPS: Stop SSDP service before freeing the pending entries
This avoids debug warnings about freeing referenced memory. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
98cbc0a2ab
commit
eb7ddbf108
1 changed files with 1 additions and 1 deletions
|
@ -982,6 +982,7 @@ static void upnp_wps_device_stop(struct upnp_wps_device_sm *sm)
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "WPS UPnP: Stop device");
|
wpa_printf(MSG_DEBUG, "WPS UPnP: Stop device");
|
||||||
web_listener_stop(sm);
|
web_listener_stop(sm);
|
||||||
|
ssdp_listener_stop(sm);
|
||||||
upnp_wps_free_msearchreply(&sm->msearch_replies);
|
upnp_wps_free_msearchreply(&sm->msearch_replies);
|
||||||
upnp_wps_free_subscriptions(&sm->subscriptions, NULL);
|
upnp_wps_free_subscriptions(&sm->subscriptions, NULL);
|
||||||
|
|
||||||
|
@ -995,7 +996,6 @@ static void upnp_wps_device_stop(struct upnp_wps_device_sm *sm)
|
||||||
if (sm->multicast_sd >= 0)
|
if (sm->multicast_sd >= 0)
|
||||||
close(sm->multicast_sd);
|
close(sm->multicast_sd);
|
||||||
sm->multicast_sd = -1;
|
sm->multicast_sd = -1;
|
||||||
ssdp_listener_stop(sm);
|
|
||||||
|
|
||||||
sm->started = 0;
|
sm->started = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue