Fix a leak in SSL_clear()
authorMatt Caswell <matt@openssl.org>
Tue, 6 Dec 2016 10:49:01 +0000 (10:49 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 12 Dec 2016 13:16:22 +0000 (13:16 +0000)
commit550e1d07a69db5af9129533ba7983594b3ed3fec
treec5be86f3c3a255249924d4448fdca31911fb65fd
parent2ece9c1fc6c5d998dc2abe03f2caf278ec05d9d0
Fix a leak in SSL_clear()

SSL_clear() was resetting numwpipes to 0, but not freeing any allocated
memory for existing write buffers.

Fixes #2026

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 4bf086005fe5ebcda5dc4d48ff701b41ab9b07f0)
ssl/record/rec_layer_s3.c
ssl/record/ssl3_buffer.c
test/sslapitest.c