mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix in sniffer for possible use of uninitialized length when skipPartial
is set. ZD 12010
This commit is contained in:
@ -4865,7 +4865,8 @@ static int CheckPreRecord(IpInfo* ipInfo, TcpInfo* tcpInfo,
|
||||
|
||||
/* if current partial data, add to end of partial */
|
||||
/* if skipping, the data is already at the end of partial */
|
||||
if ( !skipPartial && (length = ssl->buffers.inputBuffer.length) ) {
|
||||
length = ssl->buffers.inputBuffer.length;
|
||||
if ( !skipPartial && length ) {
|
||||
Trace(PARTIAL_ADD_STR);
|
||||
|
||||
if ( (*sslBytes + length) > ssl->buffers.inputBuffer.bufferSize) {
|
||||
|
Reference in New Issue
Block a user