mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix SessionTicket length in unencrypted case
This commit is contained in:
committed by
Unknown
parent
f2d2dadc89
commit
01b446f469
@ -28265,7 +28265,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
#endif
|
||||
}
|
||||
|
||||
if (IsEncryptionOn(ssl, 1))
|
||||
if (IsEncryptionOn(ssl, 1) && ssl->options.handShakeDone)
|
||||
sendSz += cipherExtraData(ssl);
|
||||
|
||||
/* check for available size */
|
||||
@ -28326,6 +28326,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
|
||||
ssl->buffers.outputBuffer.length += sendSz;
|
||||
|
||||
if (!ssl->options.groupMessages)
|
||||
ret = SendBuffered(ssl);
|
||||
|
||||
WOLFSSL_LEAVE("SendTicket", ret);
|
||||
|
Reference in New Issue
Block a user