From 13fc1b1dd22224853043c2b143979109459c7246 Mon Sep 17 00:00:00 2001 From: Chul Lee Date: Tue, 27 Sep 2016 14:13:53 +0900 Subject: [PATCH] Update the CADtlsClose API to remove the DTLS peer when closing temporary DTLS session. Change-Id: I3cd6e081ade3017ec417ee0b6de772278aefcf67 Signed-off-by: Chul Lee Reviewed-on: https://gerrit.iotivity.org/gerrit/12255 Tested-by: jenkins-iotivity Reviewed-by: Randeep Singh --- resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c b/resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c index 571878e..b81153a 100644 --- a/resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c +++ b/resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c @@ -789,6 +789,8 @@ CAResult_t CADtlsClose(const CAEndpoint_t *endpoint) return CA_STATUS_FAILED; } + CARemovePeerFromPeerInfoList(endpoint->addr, endpoint->port); + ca_mutex_unlock(g_dtlsContextMutex); OIC_LOG(DEBUG, NET_DTLS_TAG, "OUT CADtlsDisconnect"); -- 2.7.4