mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 12:17:47 +00:00
[secure-transport] remove extra mbedtls_ssl_close_notify() calls (#10947)
This commit removes the calls to `mbedtls_ssl_close_notify()` in `SecureTransport::Process()` when, based on `rval`, it is determined that `Disconnect()` should be called, as the `Disconnect()` method itself will call `mbedtls_ssl_close_notify()`.
This commit is contained in:
@@ -1049,7 +1049,6 @@ void SecureTransport::Process(void)
|
||||
break;
|
||||
|
||||
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
|
||||
mbedtls_ssl_close_notify(&mSsl);
|
||||
disconnectEvent = kDisconnectedPeerClosed;
|
||||
break;
|
||||
|
||||
@@ -1057,7 +1056,6 @@ void SecureTransport::Process(void)
|
||||
break;
|
||||
|
||||
case MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE:
|
||||
mbedtls_ssl_close_notify(&mSsl);
|
||||
disconnectEvent = kDisconnectedError;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user