[IOT-2827] Fix For OCProvisionACL Bug 29/22929/2
authorimtiaz.h <imtiaz.h@samsung.com>
Fri, 20 Oct 2017 06:00:00 +0000 (12:00 +0600)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 23 Oct 2017 19:14:43 +0000 (19:14 +0000)
1. for selectedDeviceInfo = NULL api returns OC_STACK_INVALID_PARAM

Change-Id: Idb316438a76d70fcc7a91a2e119aadd0c771bde7
Signed-off-by: imtiaz.h <imtiaz.h@samsung.com>
resource/csdk/security/provisioning/src/ocprovisioningmanager.c

index 26361ea..c679446 100644 (file)
@@ -363,7 +363,7 @@ void OC_CALL OCDeleteDiscoveredDevices(OCProvisionDev_t *pList)
 OCStackResult OC_CALL OCProvisionACL(void* ctx, const OCProvisionDev_t *selectedDeviceInfo, OicSecAcl_t *acl,
                                      OCProvisionResultCB resultCallback)
 {
-    if (NULL == acl)
+    if (NULL == acl || NULL == selectedDeviceInfo)
     {
         return OC_STACK_INVALID_PARAM;
     }