fix(mdns): fix the exception when remove one of multiple service

This commit is contained in:
Liu Han 2018-06-03 17:29:49 +08:00
parent f85be9f909
commit 696d733eb0
1 changed files with 1 additions and 1 deletions

View File

@ -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);