mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
@@ -4759,8 +4759,7 @@ retry:
|
||||
case WOLFSSL_CBIO_ERR_TIMEOUT:
|
||||
if (ssl->options.dtls) {
|
||||
#ifdef WOLFSSL_DTLS
|
||||
if ((!ssl->options.handShakeDone ||
|
||||
ssl->options.dtlsHsRetain) &&
|
||||
if (!ssl->options.handShakeDone &&
|
||||
DtlsPoolTimeout(ssl) == 0 &&
|
||||
DtlsPoolSend(ssl) == 0) {
|
||||
|
||||
|
@@ -6617,7 +6617,9 @@ int wolfSSL_dtls_got_timeout(WOLFSSL* ssl)
|
||||
{
|
||||
int result = SSL_SUCCESS;
|
||||
|
||||
if (DtlsPoolTimeout(ssl) < 0 || DtlsPoolSend(ssl) < 0) {
|
||||
if (!ssl->options.handShakeDone &&
|
||||
(DtlsPoolTimeout(ssl) < 0 || DtlsPoolSend(ssl) < 0)) {
|
||||
|
||||
result = SSL_FATAL_ERROR;
|
||||
}
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user