File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -5956,11 +5956,6 @@ static mdns_txt_item_t *_copy_mdns_txt_items(mdns_txt_linked_item_t *items, uint
5956
5956
for (mdns_txt_linked_item_t * tmp = items ; tmp != NULL ; tmp = tmp -> next ) {
5957
5957
ret_index ++ ;
5958
5958
}
5959
- if (ret_index == 0 ) {
5960
- * txt_count = 0 ;
5961
- * txt_value_len = NULL ;
5962
- return NULL ;
5963
- }
5964
5959
* txt_count = ret_index ;
5965
5960
if (ret_index == 0 ) { // handle empty TXT
5966
5961
* txt_value_len = NULL ;
@@ -6403,22 +6398,14 @@ esp_err_t mdns_service_remove_for_host(const char *instance, const char *service
6403
6398
if (_mdns_service_match (a -> service , service , proto , hostname )) {
6404
6399
if (_mdns_server -> services != a ) {
6405
6400
b -> next = a -> next ;
6406
- _mdns_send_bye (& a , 1 , false);
6407
- _mdns_remove_scheduled_service_packets (a -> service );
6408
- _mdns_free_service (a -> service );
6409
- free (a );
6410
- a = b -> next ;
6411
- continue ;
6412
6401
} else {
6413
6402
_mdns_server -> services = a -> next ;
6414
- _mdns_send_bye (& a , 1 , false);
6415
- _mdns_remove_scheduled_service_packets (a -> service );
6416
- _mdns_free_service (a -> service );
6417
- free (a );
6418
- a = _mdns_server -> services ;
6419
- b = a ;
6420
- continue ;
6421
6403
}
6404
+ _mdns_send_bye (& a , 1 , false);
6405
+ _mdns_remove_scheduled_service_packets (a -> service );
6406
+ _mdns_free_service (a -> service );
6407
+ free (a );
6408
+ break ;
6422
6409
}
6423
6410
b = a ;
6424
6411
a = a -> next ;
You can’t perform that action at this time.
0 commit comments