mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fix for sniffer with TLS v1.2 session ticket. Logic broken in PR #3044. ZD 10926.
This commit is contained in:
@@ -2607,8 +2607,8 @@ static int ProcessSessionTicket(const byte* input, int* sslBytes,
|
|||||||
else
|
else
|
||||||
#endif /* WOLFSSL_TLS13 */
|
#endif /* WOLFSSL_TLS13 */
|
||||||
{
|
{
|
||||||
/* make sure ticket id isn't too long */
|
/* capture last part of sessionID as macID (32 bytes) */
|
||||||
if (len > ID_LEN) {
|
if (len < ID_LEN) {
|
||||||
SetError(BAD_INPUT_STR, error, session, FATAL_ERROR_STATE);
|
SetError(BAD_INPUT_STR, error, session, FATAL_ERROR_STATE);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user