pass response user data to discovery handler
@@ -1451,7 +1451,7 @@ doxm_discovery_cb(oc_client_response_t *response)
{
// a device has responded to the (potentially) UUID-filtered multicast DOXM
// request. all we need from this request is the IP address of the responder
- oc_do_ip_discovery_all_at_endpoint(discovery, response->endpoint, NULL);
+ oc_do_ip_discovery_all_at_endpoint(discovery, response->endpoint, response->user_data);
}
#endif
@@ -1468,7 +1468,7 @@ issue_requests(char *current_udn)
strcat(query, current_udn);
oc_do_site_local_ipv6_multicast("/oic/sec/doxm", query, doxm_discovery_cb,
- NULL);
+ current_udn);
#else
oc_do_site_local_ipv6_discovery_all(&discovery, current_udn);
oc_do_realm_local_ipv6_discovery_all(&discovery, current_udn);
