From 0e8aab241deeb397ad9e9221ef3d006ba1239059 Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Thu, 31 Jul 2025 09:31:59 -0600 Subject: [PATCH] Sniffer: Fix infinte recursion caused by an OOO appData packet --- src/sniffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sniffer.c b/src/sniffer.c index 2bda75883..5a21f5431 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -6496,8 +6496,8 @@ doPart: return WOLFSSL_FATAL_ERROR; } - /* do we have another msg in record ? */ - if (sslFrame < recordEnd) { + /* do we have another msg in record ? did we decode the current msg ? */ + if (sslFrame < recordEnd && decoded) { Trace(ANOTHER_MSG_STR); goto doPart; }