From ca597b6986cebef00f1f3d7c6f7f457679a789bd Mon Sep 17 00:00:00 2001 From: jcmichelou Date: Sat, 24 Jun 2017 16:21:28 +0200 Subject: [PATCH] Fix typo in coap_tindydtls --- src/coap_tinydtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coap_tinydtls.c b/src/coap_tinydtls.c index 5589f465..8b2023fc 100644 --- a/src/coap_tinydtls.c +++ b/src/coap_tinydtls.c @@ -112,7 +112,7 @@ dtls_event(struct dtls_context_t *dtls_context, if (event == COAP_EVENT_DTLS_CONNECTED) coap_session_connected(coap_session); - else if (event == DTLS_ALERT_CLOSE_NOTIFY || COAP_EVENT_DTLS_ERROR) + else if (event == DTLS_ALERT_CLOSE_NOTIFY || event == COAP_EVENT_DTLS_ERROR) coap_session_disconnected(coap_session); return 0;