From: Chul Lee Date: Tue, 27 Sep 2016 05:13:53 +0000 (+0900) Subject: Update the CADtlsClose API to remove the DTLS peer when closing temporary DTLS session. X-Git-Tag: 1.2.0+RC3~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13fc1b1dd22224853043c2b143979109459c7246;p=platform%2Fupstream%2Fiotivity.git 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 --- 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");