TLSX_COOKIE is only defined with WOLFSSL_SEND_HRR_COOKIE

This commit is contained in:
Juliusz Sosinowicz
2022-07-06 10:04:15 +02:00
parent 9a256ca002
commit ef73409fd4

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;