mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 13:14:45 +02:00
Clear ssl->arrays->sessionIDSz at start of function
This commit is contained in:
committed by
David Garske
parent
57e53d1a43
commit
2248140bf3
@@ -34320,6 +34320,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
|
|
||||||
/* Reset to sane value for SCR */
|
/* Reset to sane value for SCR */
|
||||||
ssl->options.resuming = 0;
|
ssl->options.resuming = 0;
|
||||||
|
ssl->arrays->sessionIDSz = 0;
|
||||||
|
|
||||||
/* protocol version, random and session id length check */
|
/* protocol version, random and session id length check */
|
||||||
if (OPAQUE16_LEN + RAN_LEN + OPAQUE8_LEN > helloSz)
|
if (OPAQUE16_LEN + RAN_LEN + OPAQUE8_LEN > helloSz)
|
||||||
@@ -34528,12 +34529,6 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
ssl->options.resuming = 1; /* client wants to resume */
|
ssl->options.resuming = 1; /* client wants to resume */
|
||||||
WOLFSSL_MSG("Client wants to resume session");
|
WOLFSSL_MSG("Client wants to resume session");
|
||||||
}
|
}
|
||||||
#ifdef HAVE_SECURE_RENEGOTIATION
|
|
||||||
else {
|
|
||||||
/* We don't want to resume in SCR */
|
|
||||||
ssl->arrays->sessionIDSz = 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
i += b;
|
i += b;
|
||||||
|
|
||||||
#ifdef WOLFSSL_DTLS
|
#ifdef WOLFSSL_DTLS
|
||||||
|
Reference in New Issue
Block a user