From 71ed8c74b73c934d2d9ac999bde5310da02602db Mon Sep 17 00:00:00 2001 From: Jongmin Choi Date: Wed, 9 Nov 2016 19:58:26 +0900 Subject: [PATCH] [CONPRO-296] Check Null parameter in GetACLResourceData() Check Null parameter in GetACLResourceData() Change-Id: Ifac67589b6d3fd949122d94584574635c38f8ab0 Signed-off-by: Jongmin Choi Reviewed-on: https://gerrit.iotivity.org/gerrit/14159 Tested-by: jenkins-iotivity Reviewed-by: Jongsung Lee Reviewed-by: Randeep Singh (cherry picked from commit 2653631403ed52cc49f16c7eeac2307f038804ee) Reviewed-on: https://gerrit.iotivity.org/gerrit/14205 --- resource/csdk/security/src/aclresource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/csdk/security/src/aclresource.c b/resource/csdk/security/src/aclresource.c index 10ea792..e41cfa0 100644 --- a/resource/csdk/security/src/aclresource.c +++ b/resource/csdk/security/src/aclresource.c @@ -2355,7 +2355,7 @@ const OicSecAce_t* GetACLResourceData(const OicUuid_t* subjectId, OicSecAce_t ** OicSecAce_t *ace = NULL; OicSecAce_t *begin = NULL; - if (NULL == subjectId) + if (NULL == subjectId || NULL == savePtr || NULL == gAcl) { return NULL; } -- 2.7.4