forked from wolfSSL/wolfssl
Fix for possible use of invalid *sslFrame
and calculated headerSz
in partial case with WOLFSSL_SNIFFER_CHAIN_INPUT
.
This commit is contained in:
@ -4883,7 +4883,6 @@ static int CheckPreRecord(IpInfo* ipInfo, TcpInfo* tcpInfo,
|
||||
*sslFrame = ssl->buffers.inputBuffer.buffer;
|
||||
*end = *sslFrame + *sslBytes;
|
||||
}
|
||||
}
|
||||
|
||||
if (vChain != NULL) {
|
||||
#ifdef WOLFSSL_SNIFFER_CHAIN_INPUT
|
||||
@ -4924,6 +4923,7 @@ static int CheckPreRecord(IpInfo* ipInfo, TcpInfo* tcpInfo,
|
||||
#endif
|
||||
(void)chainSz;
|
||||
}
|
||||
}
|
||||
|
||||
if ((*session)->flags.clientHello == 0 && **sslFrame != handshake) {
|
||||
/* Sanity check the packet for an old style client hello. */
|
||||
|
Reference in New Issue
Block a user