diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 0e763e63a..a80da545f 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -3071,8 +3071,8 @@ start_processing: mbedtls_ssl_send_alert_message( ssl, MBEDTLS_SSL_ALERT_LEVEL_FATAL, - MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR ); - return( MBEDTLS_ERR_SSL_DECODE_ERROR ); + MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER ); + return( MBEDTLS_ERR_SSL_ILLEGAL_PARAMETER ); } } else