From 9c2facaa5e7cb2a6f66316931262d234d017b0ab Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Wed, 18 Oct 2023 14:34:46 +0100 Subject: [PATCH] Remove NULL-ing of passed in SSL context in ssl_populate_transform() Remove a piece of code that was meant to ensure non-usage of the ssl context (by NULL-ing it) under conditions where it should not be used, as this now makes less sense. Signed-off-by: Paul Elliott --- library/ssl_tls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 494de1b93e16..77510b97cb16 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -1004,8 +1004,7 @@ static int ssl_populate_transform(mbedtls_ssl_transform *transform, !defined(MBEDTLS_SSL_EXPORT_KEYS) && \ !defined(MBEDTLS_SSL_DTLS_CONNECTION_ID) && \ !defined(MBEDTLS_DEBUG_C) - ssl = NULL; /* make sure we don't use it except for those cases */ - (void) ssl; + (void) ssl; /* ssl is unused except for those cases */ #endif /*