Remove redundant length-0 checks for incoming unprotected records
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index a0e992d..fe61126 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -4854,8 +4854,7 @@
/* Check length against bounds of the current transform and version */
if( ssl->transform_in == NULL )
{
- if( ssl->in_msglen < 1 ||
- ssl->in_msglen > MBEDTLS_SSL_IN_CONTENT_LEN )
+ if( ssl->in_msglen > MBEDTLS_SSL_IN_CONTENT_LEN )
{
MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad message length" ) );
return( MBEDTLS_ERR_SSL_INVALID_RECORD );