diff options
author | Ben Laurie <ben@openssl.org> | 2011-11-13 21:55:42 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2011-11-13 21:55:42 +0000 |
commit | 68b33cc5c7aa1bb98e95bfb4b61c34192a7a50e3 (patch) | |
tree | 8c4298a1cc0487b3223a06764fe5f338f9691ad8 /ssl/s3_lib.c | |
parent | 4c02cf8ecc4b4cedeb6b6c11185f5d3e49c3cd4a (diff) |
Add Next Protocol Negotiation.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 14608a888a..a6778c213a 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3062,6 +3062,15 @@ void ssl3_clear(SSL *s) s->s3->num_renegotiations=0; s->s3->in_read_app_data=0; s->version=SSL3_VERSION; + +#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) + if (s->next_proto_negotiated) + { + OPENSSL_free(s->next_proto_negotiated); + s->next_proto_negotiated = NULL; + s->next_proto_negotiated_len = 0; + } +#endif } #ifndef OPENSSL_NO_SRP |