[IOT-3041] return OC_STACK_OK when pDev2=NULL 51/24551/2
authorv.riznyk <v.riznyk@samsung.com>
Tue, 3 Apr 2018 15:37:05 +0000 (18:37 +0300)
committerAleksey Volkov <a.volkov@samsung.com>
Tue, 10 Apr 2018 13:44:44 +0000 (13:44 +0000)
The checking pDev2 was added to OCProvisionCredentials.

Change-Id: Ic289559c68250a1436fab64bcbd5dfb26d7eb4c8
Signed-off-by: v.riznyk <v.riznyk@samsung.com>
resource/csdk/security/provisioning/src/secureresourceprovider.c

index 9e215a6..f09bdd8 100644 (file)
@@ -1925,6 +1925,7 @@ OCStackResult SRPProvisionCredentialsDos(void *ctx, OicSecCredType_t type, size_
                                          OCProvisionResultCB resultCallback)
 {
     VERIFY_NOT_NULL_RETURN(TAG, pDev1, ERROR,  OC_STACK_INVALID_PARAM);
+    VERIFY_NOT_NULL_RETURN(TAG, pDev2, ERROR,  OC_STACK_INVALID_PARAM);
     if (!resultCallback)
     {
         OIC_LOG(INFO, TAG, "SRPProvisionCredentialsDos: NULL Callback");