[IOT-2801] Allow /cred change
authorAleksey Volkov <a.volkov@samsung.com>
Wed, 11 Oct 2017 17:10:18 +0000 (20:10 +0300)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Wed, 11 Oct 2017 23:35:45 +0000 (23:35 +0000)
This patch allows /cred updates originating from internal stack.

Change-Id: If9dec4776770d96f740118b4dc2ef595c9433e8b
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
resource/csdk/security/src/credresource.c

index f64eaf70f92db875f77b81a0eacf71784efcbaee..8007c69f03266c980ce3b90157bae4b2334e583d 100644 (file)
@@ -1686,9 +1686,7 @@ OCStackResult AddCredential(OicSecCred_t * newCred)
     if ((DOS_RESET == dos.state) ||
         (DOS_RFNOP == dos.state))
     {
-        OIC_LOG_V(ERROR, TAG, "%s /cred resource is read-only in RESET and RFNOP.", __func__);
-        result = OC_EH_NOT_ACCEPTABLE;
-        goto exit;
+        OIC_LOG_V(WARNING, TAG, "%s /cred resource is read-only in RESET and RFNOP.", __func__);
     }
 
     //leave IOT-1936 fix for preconfig pin