Skip to content

Commit

Permalink
Clear ssl->arrays->sessionIDSz at start of function
Browse files Browse the repository at this point in the history
  • Loading branch information
julek-wolfssl authored and dgarske committed Jul 6, 2023
1 parent 57e53d1 commit 2248140
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -34320,6 +34320,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,

/* Reset to sane value for SCR */
ssl->options.resuming = 0;
ssl->arrays->sessionIDSz = 0;

/* protocol version, random and session id length check */
if (OPAQUE16_LEN + RAN_LEN + OPAQUE8_LEN > helloSz)
Expand Down Expand Up @@ -34528,12 +34529,6 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
ssl->options.resuming = 1; /* client wants to resume */
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;

#ifdef WOLFSSL_DTLS
Expand Down

0 comments on commit 2248140

Please sign in to comment.