Fix NULL pointer deferencing in policyengine.
authorSatya Prakash Gupta <sp.gupta@samsung.com>
Thu, 18 Jun 2015 12:41:56 +0000 (18:11 +0530)
committerSachin Agrawal <sachin.agrawal@intel.com>
Fri, 19 Jun 2015 16:55:13 +0000 (16:55 +0000)
commit2962a98da92f983b750e4dcd554471510384e711
tree8bb9bd4e2f6e91c9c3770b9c19a51c070bb5860d
parent5453db4c0354909f07fdcf407003a8b3494f974a
Fix NULL pointer deferencing in policyengine.

Update ProcessAccessRequest to call IsAccessGranted only when context is
not NULL.

Change-Id: I63abb58f254a5080ba46b30203f1e43fa6b2e781
Signed-off-by: Satya Prakash Gupta <sp.gupta@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1359
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
resource/csdk/security/src/policyengine.c