diff options
author | Vitalii Irkha <v.irkha@samsung.com> | 2019-11-14 10:35:24 +0200 |
---|---|---|
committer | Sudipto Bal <sudipto.bal@samsung.com> | 2019-11-18 12:44:47 +0900 |
commit | d4279024a74ee4af1d644cc77d741e97888a22c1 (patch) | |
tree | 6b7321677f625f80fb510fa302c40d25fbf0725a /resource | |
parent | f669a758f80b33cd92e8cc49e960e4ca1b9d759f (diff) | |
download | iotivity-d4279024a74ee4af1d644cc77d741e97888a22c1.tar.gz iotivity-d4279024a74ee4af1d644cc77d741e97888a22c1.tar.bz2 iotivity-d4279024a74ee4af1d644cc77d741e97888a22c1.zip |
Added check resetSVRDB callback to NULL
Fixed possible NULL pointer dereferences
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/635bde6994b9ebcb84a1a9faaff2c985bf5faf09
(cherry-picked from 635bde6994b9ebcb84a1a9faaff2c985bf5faf09)
Change-Id: Ib52585b767e92e3f263a653a108e0b734e348eb1
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
Diffstat (limited to 'resource')
-rw-r--r-- | resource/csdk/security/src/psinterface.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/resource/csdk/security/src/psinterface.c b/resource/csdk/security/src/psinterface.c index 029592f30..d6474abb0 100644 --- a/resource/csdk/security/src/psinterface.c +++ b/resource/csdk/security/src/psinterface.c @@ -1065,7 +1065,15 @@ exit: OICFree(doxmCbor); OICFree(resetPfCbor); - g_resetSVRDBCB.callback(ret); + if (NULL != g_resetSVRDBCB.callback) + { + g_resetSVRDBCB.callback(ret); + } + else + { + OIC_LOG_V(DEBUG, TAG, "%s - Notifier resetSVRDB callback isn't registered.", __func__); + } + return ret; } |