Merge pull request #5324 from julek-wolfssl/dtls13-hrr-fix

TLSX_COOKIE is only defined with WOLFSSL_SEND_HRR_COOKIE
This commit is contained in:
David Garske
2022-07-06 06:56:25 -07:00
committed by GitHub

View File

@ -10834,8 +10834,10 @@ int wolfSSL_accept_TLSv13(WOLFSSL* ssl)
ssl->keys.dtls_handshake_number = 0;
ssl->msgsReceived.got_client_hello = 0;
#ifdef WOLFSSL_SEND_HRR_COOKIE
/* Remove cookie so that it will get computed again */
TLSX_Remove(&ssl->extensions, TLSX_COOKIE, ssl->heap);
#endif
/* Reset states */
ssl->options.serverState = NULL_STATE;