aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wps/wps_upnp_ssdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wps/wps_upnp_ssdp.c b/src/wps/wps_upnp_ssdp.c
index b594e20..c1dc99d 100644
--- a/src/wps/wps_upnp_ssdp.c
+++ b/src/wps/wps_upnp_ssdp.c
@@ -240,7 +240,7 @@ void advertisement_state_machine_stop(struct upnp_wps_device_sm *sm,
struct sockaddr_in dest;
eloop_cancel_timeout(advertisement_state_machine_handler, NULL, sm);
- if (!send_byebye)
+ if (!send_byebye || sm->multicast_sd < 0)
return;
a->type = ADVERTISE_DOWN;