commit | 9f25b8deff8e5b8fad8493db421b4639f14d2e5d | [log] [tgz] |
---|---|---|
author | jiblime <47689567+jiblime@users.noreply.github.com> | Wed Dec 18 21:40:01 2019 -0800 |
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Fri Jan 24 09:34:06 2020 +0100 |
tree | ff38e3b742b6e0eb4e5a8e7c928c547e1fed385e | |
parent | dbcb44202c9b67184a72afd21c7191c17eee352e [diff] |
Fixes definition error when the deprecated MBEDTLS_ZLIB_SUPPORT and ENABLE_ZLIB_SUPPORT macro are defined/enabled for zlib support in mbedtls 100% tests passed, 0 tests failed out of 85 https://github.com/ARMmbed/mbedtls/blob/mbedtls-2.19.1/library/ssl_tls.c#L1842 https://github.com/ARMmbed/mbedtls/blob/mbedtls-2.19.1/library/ssl_tls.c#L1862
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 6cf7781..51ae9da 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -1880,7 +1880,7 @@ /* Allocate compression buffer */ #if defined(MBEDTLS_ZLIB_SUPPORT) - if( session->compression == MBEDTLS_SSL_COMPRESS_DEFLATE && + if( ssl->session_negotiate->compression == MBEDTLS_SSL_COMPRESS_DEFLATE && ssl->compress_buf == NULL ) { MBEDTLS_SSL_DEBUG_MSG( 3, ( "Allocating compression buffer" ) );