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:12:25 +0000 (13:12 +0000)
commit4bf086005fe5ebcda5dc4d48ff701b41ab9b07f0
tree5f4385dac976af613846f95f4dff3cf76c711d73
parent82e089308bd9a7794a45f0fa3973d7659420fbd8
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>
ssl/record/rec_layer_s3.c
ssl/record/ssl3_buffer.c
test/sslapitest.c