Matt Caswell 6b41b3f5ea Fix a memory leak in compression
The function RECORD_LAYER_clear() is supposed to clear the contents of the
RECORD_LAYER structure, but retain certain data such as buffers that are
allocated. Unfortunately one buffer (for compression) got missed and was
inadvertently being wiped, thus causing a memory leak.

In part this is due to the fact that RECORD_LAYER_clear() was reaching
inside SSL3_BUFFERs and SSL3_RECORDs, which it really shouldn't. So, I've
rewritten it to only clear the data it knows about, and to defer clearing
of SSL3_RECORD and SSL3_BUFFER structures to SSL_RECORD_clear() and the
new function SSL3_BUFFER_clear().

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-05-22 08:08:45 +01:00
..
2015-05-22 08:08:45 +01:00
2015-05-13 15:07:57 +01:00
2015-05-13 15:07:57 +01:00
2015-05-16 09:21:07 +01:00
2015-05-16 09:20:52 +01:00
2015-05-19 14:05:29 +01:00
2015-05-18 18:49:13 +01:00
2015-03-23 15:23:11 +00:00
2015-05-13 15:07:57 +01:00
2015-05-19 14:05:29 +01:00
2015-05-13 15:07:57 +01:00
2015-05-16 09:20:52 +01:00
2015-05-19 14:05:29 +01:00
2015-05-19 14:05:29 +01:00
2015-05-19 14:05:29 +01:00
2015-05-13 15:07:57 +01:00
2015-05-16 09:20:38 +01:00
2015-05-13 15:07:57 +01:00
2015-05-16 09:20:58 +01:00
2015-05-16 09:20:58 +01:00
2015-05-13 15:07:57 +01:00
2015-05-16 09:20:58 +01:00
2015-05-16 09:20:58 +01:00
2015-05-13 15:07:57 +01:00
2015-05-15 08:16:21 -04:00