diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-11-08 14:36:32 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-11-08 14:36:32 +0000 |
commit | e3738c49b8cb59e80079b8c6be13cb8afaf843f8 (patch) | |
tree | fa5abddd11cf52adf6ec427b4b6d03a311c74ba8 /ssl/t1_lib.c | |
parent | 41746da8c2b03cd83d2d75804b623f948ac1c2a6 (diff) |
If it is a new session don't send the old TLS ticket: send a zero length
ticket to request a new session.
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r-- | ssl/t1_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 401aa5e4ce..db2bd6b6a8 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -365,7 +365,7 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned cha if (!(SSL_get_options(s) & SSL_OP_NO_TICKET)) { int ticklen; - if (s->session && s->session->tlsext_tick) + if (!s->new_session && s->session && s->session->tlsext_tick) ticklen = s->session->tlsext_ticklen; else if (s->session && s->tlsext_session_ticket && s->tlsext_session_ticket->data) |