Skip to content

Commit 0e8aab2

Browse files
committed
Sniffer: Fix infinte recursion caused by an OOO appData packet
1 parent 6512635 commit 0e8aab2

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)