Resolved doxm issue
authorRandeep Singh <randeep.s@samsung.com>
Tue, 1 Sep 2015 12:29:06 +0000 (21:29 +0900)
committerSachin Agrawal <sachin.agrawal@intel.com>
Tue, 1 Sep 2015 17:00:49 +0000 (17:00 +0000)
SVR db is not not getting updated with owned as true and owner
information, in case of JUST_WORKS case.

Change-Id: Icbbd19171d0177c5fadae429dc54b8626af57a75
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2336
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
resource/csdk/security/src/doxmresource.c

index 0ed223f..78d91ba 100644 (file)
@@ -518,7 +518,7 @@ static OCEntityHandlerResult HandleDoxmPutRequest (const OCEntityHandlerRequest
                 ehRet = AddOwnerPSK((CAEndpoint_t *)&request->devAddr, newDoxm,
                         (uint8_t*) OXM_JUST_WORKS, strlen(OXM_JUST_WORKS));
 
-                VERIFY_SUCCESS(TAG, ehRet = OC_EH_OK, ERROR);
+                VERIFY_SUCCESS(TAG, OC_EH_OK == ehRet, ERROR);
 
                 // Update new state in persistent storage
                 if (true == UpdatePersistentStorage(gDoxm))