From 85ec6054c670bd828a368625207ea800869baf66 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 7 Dec 2021 13:58:38 +1000 Subject: [PATCH] TLS13: Skip if expired rather than turning off resuming --- src/tls13.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index 13d428723..f4a6ddcdb 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -4003,8 +4003,8 @@ static int DoPreSharedKeys(WOLFSSL* ssl, byte* suite, int* usingPSK, int* first) */ if (diff > (int)ssl->timeout * 1000 || diff < -1000 || diff - MAX_TICKET_AGE_SECS * 1000 > 1000) { - /* Invalid difference, fallback to full handshake. */ - ssl->options.resuming = 0; + current = current->next; + continue; } #ifndef WOLFSSL_PSK_ONE_ID