[IOT-2835] reset /cred.rowneruuid 73/22973/2
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 23 Oct 2017 15:54:19 +0000 (08:54 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 23 Oct 2017 20:03:21 +0000 (20:03 +0000)
The fix to /cred.rowneruuid (from many to one) means we have to reset the
single global rowneruuid also.

Change-Id: I309e5bfe9926290785d4943d2b9358fc06448a20
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/src/deviceonboardingstate.c

index ccf36fc..8d6c3b2 100644 (file)
@@ -406,6 +406,7 @@ static bool EnterRESET()
 
     // Set acl, doxm, cred and pstat rowneruuids = Nil UUID
     VERIFY_SUCCESS(TAG, OC_STACK_OK == SetAclRownerId(&THE_NIL_UUID), ERROR);
+    VERIFY_SUCCESS(TAG, OC_STACK_OK == SetCredRownerId(&THE_NIL_UUID), ERROR);
     VERIFY_SUCCESS(TAG, OC_STACK_OK == SetDoxmRownerId(&THE_NIL_UUID), ERROR);
     VERIFY_SUCCESS(TAG, OC_STACK_OK == SetPstatRownerId(&THE_NIL_UUID), ERROR);