don't echo session id on blank ticket if we're going to create a new ticket

This commit is contained in:
toddouska
2016-07-13 18:45:10 -07:00
parent 9a9a98ac82
commit c7b969b5b4

View File

@ -3160,6 +3160,8 @@ static int TLSX_SessionTicket_Parse(WOLFSSL* ssl, byte* input, word16 length,
TLSX_SetResponse(ssl, TLSX_SESSION_TICKET); /* send blank ticket */
ssl->options.createTicket = 1; /* will send ticket msg */
ssl->options.useTicket = 1;
ssl->options.resuming = 0; /* no standard resumption */
ssl->arrays->sessionIDSz = 0; /* no echo on blank ticket */
}
} else {
/* got actual ticket from client */