Send Close Notify message in response to a Fatal Alert. (#1153)

This commit is contained in:
Jonathan Hui
2017-01-15 08:30:37 -08:00
committed by GitHub
parent 9925c82314
commit 04ff0df29a
+1
View File
@@ -409,6 +409,7 @@ void Dtls::Process(void)
break;
case MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE:
mbedtls_ssl_close_notify(&mSsl);
ExitNow(shouldClose = true);
break;