Reset cookie when resetting DTLS 1.3 state

pull/5284/head
Juliusz Sosinowicz 2022-07-04 12:52:25 +02:00
parent a8adde66c8
commit 10c8a1668e
1 changed files with 2 additions and 0 deletions

View File

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