- Redundant condition checking reported in caleclient.c, corrected
- Added NULL check in NSProviderTopic.c
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/683
(cherry-picked from
904203befcb4bfd93a2f91f5b97c792715196992)
Change-Id: Id8c7d6e4b91693d4ef07c10e0628ef1546870cf6
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
if (0 < scannedDeviceLen)
{
if (!address // multicast
- || (address && CALEClientIsDeviceInScanDeviceList(env, address))) // unicast
+ || CALEClientIsDeviceInScanDeviceList(env, address)) // unicast
{
devicesDiscovered = true;
break;
}
else
{
- if (NSProviderStorageRead(registeredTopicList, subData->topicName))
+ if (subData && NSProviderStorageRead(registeredTopicList, subData->topicName))
{
newObj->data = topicSyncResult->topicData;
newObj->next = NULL;