oc_obt:bug fix in realm/site-local discovery
@@ -619,14 +619,14 @@ discover_owned_devices(uint8_t scope, oc_obt_discovery_cb_t cb, void *data)
}
} else if (scope == 0x03) {
if (oc_do_realm_local_ipv6_multicast("/oic/res", "rt=oic.r.doxm",
- &obt_check_owned, c)) {
+ &get_endpoints, c)) {
oc_list_add(oc_discovery_cbs, c);
oc_set_delayed_callback(c, free_discovery_cb, DISCOVERY_CB_PERIOD);
return 0;
}
} else if (scope == 0x05) {
if (oc_do_site_local_ipv6_multicast("/oic/res", "rt=oic.r.doxm",
- &obt_check_owned, c)) {
+ &get_endpoints, c)) {
oc_list_add(oc_discovery_cbs, c);
oc_set_delayed_callback(c, free_discovery_cb, DISCOVERY_CB_PERIOD);
return 0;
