mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
Ignore MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY when printing debug
It's benign Signed-off-by: Deomid rojer Ryabkov <rojer@rojer.me>
This commit is contained in:
parent
92152dc746
commit
e608ce9b1d
@ -4241,7 +4241,9 @@ int mbedtls_ssl_read_record(mbedtls_ssl_context *ssl,
|
||||
MBEDTLS_ERR_SSL_CONTINUE_PROCESSING == ret);
|
||||
|
||||
if (0 != ret) {
|
||||
MBEDTLS_SSL_DEBUG_RET(1, ("mbedtls_ssl_handle_message_type"), ret);
|
||||
if (ret != MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY) {
|
||||
MBEDTLS_SSL_DEBUG_RET(1, ("mbedtls_ssl_handle_message_type"), ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -5838,8 +5840,9 @@ int mbedtls_ssl_read(mbedtls_ssl_context *ssl, unsigned char *buf, size_t len)
|
||||
if (ret == MBEDTLS_ERR_SSL_CONN_EOF) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_read_record", ret);
|
||||
if (ret != MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY) {
|
||||
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_read_record", ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user