Commit abf2f8fc authored by Paul Bakker's avatar Paul Bakker
Browse files

zlib compression/decompression skipped on empty blocks

parent e5bffc31
...@@ -25,6 +25,7 @@ Changes ...@@ -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 ) ...@@ -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 ) ...@@ -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 )
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment