[IOT-2361] Perform NULL check before dereference. 61/22361/1
authorSenthil Kumar G S <senthil.gs@samsung.com>
Wed, 30 Aug 2017 15:30:40 +0000 (21:00 +0530)
committerSenthil Kumar G S <senthil.gs@samsung.com>
Thu, 7 Sep 2017 06:51:25 +0000 (06:51 +0000)
commita93ec3c41e066b9083c7d11ab75d50ded565a139
tree39bac36e8527858e49c16ad12c77c1e3b5e0317a
parent62bef131113a8892b863d947049dc66821bde00d
[IOT-2361] Perform NULL check before dereference.

Moved NULL checking macro invocation for pointer variable
before it gets dereferenced.

Change-Id: I303e56ae1e856991f44373e06c5adc156515107a
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/22273
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 578ba07661d943e42762745daaeeaea89fc9604e)
resource/csdk/stack/src/ocpayloadparse.c