don't try to send an alert to a disconnected peer

This commit is contained in:
JacobBarthelmeh
2023-03-22 14:20:07 -07:00
parent 835e8a18c7
commit 7734588669

View File

@@ -16049,6 +16049,12 @@ void SendFatalAlertOnly(WOLFSSL *ssl, int error)
case WC_PENGIND_E:
#endif
return;
/* peer already disconnected and ssl is possibly in bad state
* don't try to send an alert */
case SOCKET_ERROR_E:
return;
case BUFFER_ERROR:
case ASN_PARSE_E:
case COMPRESSION_ERROR: