Merge pull request #2715 from ejohnstown/maint-dtls

Maintentance: DTLS
This commit is contained in:
David Garske
2020-01-10 14:43:15 -08:00
committed by GitHub

View File

@@ -11675,6 +11675,8 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
#endif
#ifdef WOLFSSL_DTLS
if (ssl->options.serverState ==
SERVER_HELLOVERIFYREQUEST_COMPLETE) {
if (IsDtlsNotSctpMode(ssl)) {
/* re-init hashes, exclude first hello and verify request */
if ((ssl->error = InitHandshakeHashes(ssl)) != 0) {
@@ -11686,6 +11688,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
return WOLFSSL_FATAL_ERROR;
}
}
}
#endif
ssl->options.connectState = HELLO_AGAIN_REPLY;