remote_handle = __dnssd_get_struct_from_handle(dnssd_service);
if (remote_handle == NULL) {
DNSSD_LOGD("Service Handler not found");
+ DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_SERVICE_NOT_FOUND;
}
dnssd_handle_list = g_slist_remove(dnssd_handle_list, remote_handle);
g_free(remote_handle->service_type);
dnssd_found_data_s *found = GET_FOUND_DATA_P(remote_handle);
- if (!found) {
- DNSSD_LOGE("Cannot find found data.");
- DNSSD_UNLOCK;
- return DNSSD_ERROR_INVALID_PARAMETER;
- }
if (remote_handle->watch_id > 0)
__remove_service_getaddrinfo_socket(remote_handle);