forked from wolfSSL/wolfssl
NewSessionTicket parsing error fix
This commit is contained in:
@@ -6312,7 +6312,7 @@ static int DoTls13NewSessionTicket(WOLFSSL* ssl, const byte* input,
|
|||||||
if ((*inOutIdx - begin) + nonceLength > size)
|
if ((*inOutIdx - begin) + nonceLength > size)
|
||||||
return BUFFER_ERROR;
|
return BUFFER_ERROR;
|
||||||
nonce = input + *inOutIdx;
|
nonce = input + *inOutIdx;
|
||||||
*inOutIdx += 1;
|
*inOutIdx += nonceLength;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Ticket length. */
|
/* Ticket length. */
|
||||||
|
Reference in New Issue
Block a user