summaryrefslogtreecommitdiff
path: root/resource
diff options
context:
space:
mode:
authorOleksii Beketov <ol.beketov@samsung.com>2019-08-05 13:55:24 +0300
committerDoHyun Pyun <dh79.pyun@samsung.com>2019-10-14 10:22:06 +0900
commite461e86faddf2569f6c635e9f867cad86dffc7c6 (patch)
tree7797d90dd64ab704d4ac6fa72eaedf247d136c6b /resource
parentd9297879805a989c923e38c2bf286c0f6e907066 (diff)
downloadiotivity-tizen_5.5_mobile_hotfix.tar.gz
iotivity-tizen_5.5_mobile_hotfix.tar.bz2
iotivity-tizen_5.5_mobile_hotfix.zip
Enable complete SVR DB reset on OTM error. Recently, only pstat and doxm resources has been reset. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/552 (cherry-picked from 8c20c75f22a5e81c9c7814eaf18e5f7c73aca7b6) Change-Id: I18a7a2accd82c51a57e14cd65b91431d5b5b84eb Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Diffstat (limited to 'resource')
-rw-r--r--resource/csdk/security/src/doxmresource.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/resource/csdk/security/src/doxmresource.c b/resource/csdk/security/src/doxmresource.c
index eb554043c..d8b450648 100644
--- a/resource/csdk/security/src/doxmresource.c
+++ b/resource/csdk/security/src/doxmresource.c
@@ -1778,8 +1778,7 @@ exit:
InvokeOtmEventHandler(ehRequest->devAddr.addr, ehRequest->devAddr.port,
NULL, OIC_OTM_ERROR);
#endif
- RestoreDoxmToInitState();
- RestorePstatToInitState();
+ ResetSecureResourceInPS();
OIC_LOG(WARNING, TAG, "DOXM will be reverted.");
}
}