Commit 841fb714 authored by Randeep's avatar Randeep

Resolved JIRA issue [IOT-999]

Change-Id: Iba57ff1bf4f82619ec21e5f905b692608a9aff70
Signed-off-by: default avatarsaurabh.s9 <saurabh.s9@samsung.com>
Signed-off-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6175Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
parent d0262ace
......@@ -279,7 +279,7 @@ namespace OC
if(!resultCallback)
{
oclog() <<"Result callback can't be null";
return OC_STACK_INVALID_PARAM;
return OC_STACK_INVALID_CALLBACK;
}
OCStackResult result;
......@@ -304,11 +304,16 @@ namespace OC
OCStackResult OCSecureResource::provisionACL( const OicSecAcl_t* acl,
ResultCallBack resultCallback)
{
if(!resultCallback || !acl)
if(!acl)
{
oclog() <<"Result callback or ACL can't be null";
oclog() <<"ACL can't be null";
return OC_STACK_INVALID_PARAM;
}
if(!resultCallback)
{
oclog() <<"result callback can not be null";
return OC_STACK_INVALID_CALLBACK;
}
OCStackResult result;
auto cLock = m_csdkLock.lock();
......@@ -336,7 +341,7 @@ namespace OC
if(!resultCallback)
{
oclog() << "Result calback can't be null";
return OC_STACK_INVALID_PARAM;
return OC_STACK_INVALID_CALLBACK;
}
OCStackResult result;
......@@ -367,8 +372,8 @@ namespace OC
{
if(!resultCallback)
{
oclog() << "Result calback can't be null";
return OC_STACK_INVALID_PARAM;
oclog() << "Result callback can not be null";
return OC_STACK_INVALID_CALLBACK;
}
OCStackResult result;
......@@ -400,7 +405,7 @@ namespace OC
if(!resultCallback)
{
oclog() << "Result calback can't be null";
return OC_STACK_INVALID_PARAM;
return OC_STACK_INVALID_CALLBACK;
}
OCStackResult result;
......@@ -429,7 +434,7 @@ namespace OC
if(!resultCallback)
{
oclog() << "Result calback can't be null";
return OC_STACK_INVALID_PARAM;
return OC_STACK_INVALID_CALLBACK;
}
OCStackResult result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment