Fix a defect to access a NULL variable
authorJihun Ha <jihun.ha@samsung.com>
Tue, 31 Jan 2017 06:34:10 +0000 (15:34 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 31 Jan 2017 08:28:28 +0000 (08:28 +0000)
commit4d6ad940e542511c7acd41f78ce231a23fb1567a
tree713c9c61533c7a4fc45541bf3f4a8124bdb6e591
parent2aee2e733c089ccf00a1247e3542d1e0aa643940
Fix a defect to access a NULL variable

If OICMalloc fails, mediatorDevId gets to be NULL, which causes a crash
in calling getDeviceID API with mediatorDevId.

Change-Id: Ie59211187e6be896f0f4d0387884092812521a84
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16905
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Heewon Park <h_w.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp