releasing correct ptr in service_remove

This commit is contained in:
philippe44
2017-08-19 00:15:41 -07:00
parent 5f7e474dd1
commit f259e8c705
6 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -709,8 +709,8 @@ void mdns_service_remove(struct mdnsd *svr, struct mdns_service *svc) {
// remove PTR and BPTR related to this SVC
if ((ptr_e = rr_entry_remove(svr->group, rr->e, RR_PTR)) != NULL) {
// remove PTR from announce and services
rr_list_remove(&svr->announce, rr->e);
rr_list_remove(&svr->services, rr->e);
rr_list_remove(&svr->announce, ptr_e);
rr_list_remove(&svr->services, ptr_e);
// find BPTR and remove it from groups
rr_entry_remove(svr->group, ptr_e, RR_PTR);