mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:15:37 +01:00
zlib compression/decompression skipped on empty blocks
This commit is contained in:
parent
e5bffc319d
commit
abf2f8fcf9
@ -25,6 +25,7 @@ Changes
|
|||||||
|
|
||||||
Bugfix
|
Bugfix
|
||||||
* Fixed parse error in ssl_parse_certificate_request()
|
* Fixed parse error in ssl_parse_certificate_request()
|
||||||
|
* zlib compression/decompression skipped on empty blocks
|
||||||
|
|
||||||
= Version 1.2.8 released 2013-06-19
|
= Version 1.2.8 released 2013-06-19
|
||||||
Features
|
Features
|
||||||
|
@ -1296,6 +1296,9 @@ static int ssl_compress_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
SSL_DEBUG_MSG( 2, ( "=> compress buf" ) );
|
SSL_DEBUG_MSG( 2, ( "=> compress buf" ) );
|
||||||
|
|
||||||
|
if( len_pre == 0 )
|
||||||
|
return( 0 );
|
||||||
|
|
||||||
msg_pre = (unsigned char*) malloc( len_pre );
|
msg_pre = (unsigned char*) malloc( len_pre );
|
||||||
if( msg_pre == NULL )
|
if( msg_pre == NULL )
|
||||||
{
|
{
|
||||||
@ -1347,6 +1350,9 @@ static int ssl_decompress_buf( ssl_context *ssl )
|
|||||||
|
|
||||||
SSL_DEBUG_MSG( 2, ( "=> decompress buf" ) );
|
SSL_DEBUG_MSG( 2, ( "=> decompress buf" ) );
|
||||||
|
|
||||||
|
if( len_pre == 0 )
|
||||||
|
return( 0 );
|
||||||
|
|
||||||
msg_pre = (unsigned char*) malloc( len_pre );
|
msg_pre = (unsigned char*) malloc( len_pre );
|
||||||
if( msg_pre == NULL )
|
if( msg_pre == NULL )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user