You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connect to this with a polarssl client. Sending from polar to socat works fine. Just hitting enter on the socat end will make the connection fail on the PolarSSL side with a compression error.
I tracked that down to ssl_decompress_buf() being called with an empty block.
The zlib will return an error in that case.
Putting
if( !len_pre ) return ( 0 );
near the top of ssl_compress_buf() and ssl_decompress_buf() fixes that.
Versions:
client: PolarSSL 1.2.7 with zlib 1.2.8
server: socat 1.7.1.3 with openssl 1.0.0e-2ubuntu4.7
The text was updated successfully, but these errors were encountered:
It seems socat likes to send empty blocks which causes zlib to punt.
To reproduce, run this on a test-server:
Connect to this with a polarssl client. Sending from polar to socat works fine. Just hitting enter on the socat end will make the connection fail on the PolarSSL side with a compression error.
I tracked that down to ssl_decompress_buf() being called with an empty block.
The zlib will return an error in that case.
Putting
near the top of ssl_compress_buf() and ssl_decompress_buf() fixes that.
Versions:
The text was updated successfully, but these errors were encountered: