Skip to content

Commit

Permalink
Remove NULL-ing of passed in SSL context in ssl_populate_transform()
Browse files Browse the repository at this point in the history
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 <paul.elliott@arm.com>
  • Loading branch information
paul-elliott-arm committed Nov 3, 2023
1 parent 0ee9dac commit 9c2faca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/ssl_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down

0 comments on commit 9c2faca

Please sign in to comment.