Commit cf70ee57 authored by saurabh.s9's avatar saurabh.s9 Committed by Randeep

Resolved JIRA [IOT-1009]

Change-Id: Ia21ccd9c3e820aaf9eba1bdf352dbe8ec0ea65be
Signed-off-by: default avatarsaurabh.s9 <saurabh.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6195Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarMd. Imtiaz Hossain <imtiaz.h@samsung.com>
Reviewed-by: default avatardongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
parent aad182df
......@@ -626,13 +626,13 @@ static OCStackResult getUUIDforId(int id, OicUuid_t *uid, bool *result)
OCStackResult PDMGetLinkedDevices(const OicUuid_t *UUID, OCUuidList_t **UUIDLIST, size_t *numOfDevices)
{
CHECK_PDM_INIT(TAG);
if (NULL != *UUIDLIST)
if (NULL == UUID || NULL == numOfDevices || !UUIDLIST)
{
OIC_LOG(ERROR, TAG, "Not null list will cause memory leak");
return OC_STACK_INVALID_PARAM;
}
if (NULL == UUID)
if (NULL != *UUIDLIST)
{
OIC_LOG(ERROR, TAG, "Not null list will cause memory leak");
return OC_STACK_INVALID_PARAM;
}
bool result = false;
......
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