From e461e86faddf2569f6c635e9f867cad86dffc7c6 Mon Sep 17 00:00:00 2001
From: Oleksii Beketov
Date: Mon, 5 Aug 2019 13:55:24 +0300
Subject: [PATCH] CONPRO-1467: Improve Reset
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
Signed-off-by: DoHyun Pyun
---
resource/csdk/security/src/doxmresource.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/resource/csdk/security/src/doxmresource.c b/resource/csdk/security/src/doxmresource.c
index eb55404..d8b4506 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.");
}
}
--
2.7.4