diff options
author | Bodo Möller <bodo@openssl.org> | 2011-10-13 13:05:35 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2011-10-13 13:05:35 +0000 |
commit | f72c1a58cb122bea63b53ba3e35f41d0419c36f9 (patch) | |
tree | 952379352f32bb14260cf01e1e0d4912efcfb585 /ssl/s3_lib.c | |
parent | 2461396f69e931c42895b92ab68f840356bcfe4d (diff) |
In ssl3_clear, preserve s3->init_extra along with s3->rbuf.
Submitted by: Bob Buckholz <bbuckholz@google.com>
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index c82dcc744c..14608a888a 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3000,6 +3000,7 @@ void ssl3_clear(SSL *s) { unsigned char *rp,*wp; size_t rlen, wlen; + int init_extra; #ifdef TLSEXT_TYPE_opaque_prf_input if (s->s3->client_opaque_prf_input != NULL) @@ -3038,6 +3039,7 @@ void ssl3_clear(SSL *s) wp = s->s3->wbuf.buf; rlen = s->s3->rbuf.len; wlen = s->s3->wbuf.len; + init_extra = s->s3->init_extra; if (s->s3->handshake_buffer) { BIO_free(s->s3->handshake_buffer); s->s3->handshake_buffer = NULL; @@ -3050,6 +3052,7 @@ void ssl3_clear(SSL *s) s->s3->wbuf.buf = wp; s->s3->rbuf.len = rlen; s->s3->wbuf.len = wlen; + s->s3->init_extra = init_extra; ssl_free_wbio_buffer(s); |