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;