From 696d733eb04ee98f764dffdc82bcef51a724c9c6 Mon Sep 17 00:00:00 2001 From: Liu Han Date: Sun, 3 Jun 2018 17:29:49 +0800 Subject: [PATCH] fix(mdns): fix the exception when remove one of multiple service --- components/mdns/mdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 8ead7c44d..6b74f7de8 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -3703,7 +3703,7 @@ static void _mdns_execute_action(mdns_action_t * action) a = a->next; } if (a->next == action->data.srv_del.service) { - mdns_srv_item_t * b = a; + mdns_srv_item_t * b = a->next; a->next = a->next->next; _mdns_send_bye(&b, 1, false); _mdns_free_service(b->service);