fix: propagate WOLFSSL_TICKET_RET_CREATE from DoDecryptTicket()

pull/6052/head
Marco Oliverio 2023-02-03 17:33:24 +00:00
parent ef266d7e0b
commit a2bf82397a
1 changed files with 2 additions and 2 deletions

View File

@ -34495,7 +34495,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
return BAD_TICKET_KEY_CB_SZ;
}
*it = (InternalTicket*)et->enc_ticket;
return 0;
return ret;
}
/* Parse ticket sent by client, returns callback return value */
@ -34508,7 +34508,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
WOLFSSL_ENTER("DoClientTicket");
ret = DoDecryptTicket(ssl, input, len, &it);
if (ret != 0)
if (ret != WOLFSSL_TICKET_RET_OK && ret != WOLFSSL_TICKET_RET_CREATE)
return ret;
#ifdef WOLFSSL_CHECK_MEM_ZERO
/* Internal ticket successfully decrypted. */