From 99fb6e94614e1b7102336c4e3e8d911bd655e3eb Mon Sep 17 00:00:00 2001 From: Krzysztof Stachowiak Date: Thu, 5 Apr 2018 14:48:18 +0200 Subject: [PATCH] Remove a redundant test --- library/ssl_cli.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 1fbc94dcd..c4cdd9200 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -2553,12 +2553,6 @@ static int ssl_parse_certificate_request( mbedtls_ssl_context *ssl ) #endif n += 2 + sig_alg_len; - - if( ssl->in_hslen < mbedtls_ssl_hs_hdr_len( ssl ) + 2 + n ) - { - MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad certificate request message" ) ); - return( MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST ); - } } #endif /* MBEDTLS_SSL_PROTO_TLS1_2 */