From fd02e1b3043eecc5711eb8254aadaa3f43ca7503 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Tue, 23 Nov 2021 10:57:13 +0100 Subject: QUIC: fix extra dissection (#1376) When we have fully reassembled the Client Hello, we need to stop extra dissection. --- src/lib/protocols/quic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c index f908dc58c..358edb064 100644 --- a/src/lib/protocols/quic.c +++ b/src/lib/protocols/quic.c @@ -1541,7 +1541,10 @@ static int ndpi_search_quic_extra(struct ndpi_detection_module_struct *ndpi_stru if (is_ch_reassembler_pending(flow)) { ndpi_search_quic(ndpi_struct, flow); - return is_ch_reassembler_pending(flow); + if(is_ch_reassembler_pending(flow)) + return 1; + flow->extra_packets_func = NULL; + return 0; } /* RTP/RTCP stuff */ -- cgit v1.2.3