Skip to content

Commit 65e7f2c

Browse files
Merge pull request wolfSSL#9051 from lealem47/zd20288
Sniffer: Fix infinite recursion caused by an OOO appData packet
2 parents 86adcd6 + 0e8aab2 commit 65e7f2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sniffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6496,8 +6496,8 @@ static int ProcessMessage(const byte* sslFrame, SnifferSession* session,
64966496
return WOLFSSL_FATAL_ERROR;
64976497
}
64986498

6499-
/* do we have another msg in record ? */
6500-
if (sslFrame < recordEnd) {
6499+
/* do we have another msg in record ? did we decode the current msg ? */
6500+
if (sslFrame < recordEnd && decoded) {
65016501
Trace(ANOTHER_MSG_STR);
65026502
goto doPart;
65036503
}

0 commit comments

Comments
 (0)