Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
abf2f8fc
Commit
abf2f8fc
authored
Jun 30, 2013
by
Paul Bakker
Browse files
zlib compression/decompression skipped on empty blocks
parent
e5bffc31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ChangeLog
ChangeLog
+1
-0
library/ssl_tls.c
library/ssl_tls.c
+6
-0
No files found.
ChangeLog
View file @
abf2f8fc
...
...
@@ -25,6 +25,7 @@ Changes
Bugfix
* Fixed parse error in ssl_parse_certificate_request()
* zlib compression/decompression skipped on empty blocks
= Version 1.2.8 released 2013-06-19
Features
...
...
library/ssl_tls.c
View file @
abf2f8fc
...
...
@@ -1296,6 +1296,9 @@ static int ssl_compress_buf( ssl_context *ssl )
SSL_DEBUG_MSG
(
2
,
(
"=> compress buf"
)
);
if
(
len_pre
==
0
)
return
(
0
);
msg_pre
=
(
unsigned
char
*
)
malloc
(
len_pre
);
if
(
msg_pre
==
NULL
)
{
...
...
@@ -1347,6 +1350,9 @@ static int ssl_decompress_buf( ssl_context *ssl )
SSL_DEBUG_MSG
(
2
,
(
"=> decompress buf"
)
);
if
(
len_pre
==
0
)
return
(
0
);
msg_pre
=
(
unsigned
char
*
)
malloc
(
len_pre
);
if
(
msg_pre
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment