Skip to content

Commit

Permalink
If it is a new session don't send the old TLS ticket: send a zero length
Browse files Browse the repository at this point in the history
ticket to request a new session.
  • Loading branch information
snhenson committed Nov 8, 2009
1 parent 41746da commit e3738c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/t1_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3738c4

Please sign in to comment.