From a104cf887e18caf8a1d3abb6119675f8a5120227 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 28 Feb 2022 12:25:57 +0100 Subject: [PATCH] Ticket failure should result in a regular handshake --- src/internal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 25577319c..36f68847a 100644 --- a/src/internal.c +++ b/src/internal.c @@ -30757,7 +30757,9 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx, et->enc_ticket, inLen, &outLen, ssl->ctx->ticketEncCtx); } - if (ret == WOLFSSL_TICKET_RET_FATAL || ret < 0) return ret; + if (ret == WOLFSSL_TICKET_RET_FATAL) + ret = WOLFSSL_TICKET_RET_REJECT; + if (ret < 0) return ret; if (outLen > (int)inLen || outLen < (int)sizeof(InternalTicket)) { WOLFSSL_MSG("Bad user ticket decrypt len"); return BAD_TICKET_KEY_CB_SZ;