diff --git a/src/tls13.c b/src/tls13.c index 371cd4e69..337cd343e 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -6312,7 +6312,7 @@ static int DoTls13NewSessionTicket(WOLFSSL* ssl, const byte* input, if ((*inOutIdx - begin) + nonceLength > size) return BUFFER_ERROR; nonce = input + *inOutIdx; - *inOutIdx += 1; + *inOutIdx += nonceLength; #endif /* Ticket length. */