From: Liu Han Date: Sun, 3 Jun 2018 09:29:49 +0000 (+0800) Subject: fix(mdns): fix the exception when remove one of multiple service X-Git-Tag: v3.1-beta1~57^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=696d733eb04ee98f764dffdc82bcef51a724c9c6;p=esp-idf fix(mdns): fix the exception when remove one of multiple service --- diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 8ead7c44d5..6b74f7de88 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);