Commit 521b1a41 authored by Kishen Maloor's avatar Kishen Maloor

oc_obt: fix bug in discovery

Change-Id: I55a5723a2fe706b06f84b30bc82308b6c8096892
Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/29445Tested-by: default avatarIoTivity Jenkins <jenkins-daemon@iotivity.org>
parent c3772a00
......@@ -415,7 +415,7 @@ otm_just_works_cb(oc_uuid_t *uuid, int status, void *data)
if (status >= 0) {
PRINT("\nSuccessfully performed OTM on device %s\n", di);
add_device_to_list(uuid, unowned_devices);
add_device_to_list(uuid, owned_devices);
} else {
PRINT("\nERROR performing ownership transfer on device %s\n", di);
}
......
......@@ -429,8 +429,6 @@ get_endpoints(oc_client_response_t *data)
return;
}
cb->cb(&device->uuid, device->endpoint, cb->data);
oc_remove_delayed_callback(cb, free_discovery_cb);
free_discovery_cb(cb);
}
static void
......@@ -1286,7 +1284,9 @@ oc_obt_init(void)
memcpy(doxm->devowneruuid.id, uuid->id, 16);
memcpy(doxm->deviceuuid.id, uuid->id, 16);
memcpy(doxm->rowneruuid.id, uuid->id, 16);
doxm->owned = true;
doxm->oxmsel = 0;
memcpy(creds->rowneruuid.id, uuid->id, 16);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment