Merge pull request #3979 from AndrzejKurek/coverity-seg-fault-context

Fix the usage of ssl context after its nullified
This commit is contained in:
Andrzej Kurek 2021-01-05 12:47:41 +01:00 committed by GitHub
commit d7073d9290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1435,7 +1435,8 @@ int ssl_populate_transform( mbedtls_ssl_transform *transform,
#if !defined(MBEDTLS_SSL_HW_RECORD_ACCEL) && \ #if !defined(MBEDTLS_SSL_HW_RECORD_ACCEL) && \
!defined(MBEDTLS_SSL_EXPORT_KEYS) && \ !defined(MBEDTLS_SSL_EXPORT_KEYS) && \
!defined(MBEDTLS_DEBUG_C) !defined(MBEDTLS_DEBUG_C) && \
!defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
ssl = NULL; /* make sure we don't use it except for those cases */ ssl = NULL; /* make sure we don't use it except for those cases */
(void) ssl; (void) ssl;
#endif #endif