From 1cda2667afb0bb654db712321b1cd84b6028c34a Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 4 Jun 2020 13:28:28 +0100 Subject: [PATCH] Spell out check for non-zero'ness Signed-off-by: Hanno Becker --- library/ssl_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_msg.c b/library/ssl_msg.c index 26f30b5d1..65eab4b40 100644 --- a/library/ssl_msg.c +++ b/library/ssl_msg.c @@ -884,7 +884,7 @@ int mbedtls_ssl_encrypt_buf( mbedtls_ssl_context *ssl, /* * Prefix record content with dynamic IV in case it is explicit. */ - if( dynamic_iv_is_explicit ) + if( dynamic_iv_is_explicit != 0 ) { if( rec->data_offset < dynamic_iv_len ) {