From 523360001e4c9e64d875febd9f024daa2691c31a Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 6 Aug 2022 20:06:56 +0200 Subject: HTTP, Bittorrent, Kerberos: fix stopping of extra dissection (#1700) The return value of the extra-dissection callback indicates if the extra dissection needs to be called again. In the HTTP cose, this setting to NULL of the callabck is wrong since we stop extra dissection only if we have a hostname *and* a return code. --- src/lib/protocols/kerberos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols/kerberos.c') diff --git a/src/lib/protocols/kerberos.c b/src/lib/protocols/kerberos.c index e7063d010..943ebe168 100644 --- a/src/lib/protocols/kerberos.c +++ b/src/lib/protocols/kerberos.c @@ -693,7 +693,7 @@ static int ndpi_search_kerberos_extra(struct ndpi_detection_module_struct *ndpi_ ndpi_search_kerberos(ndpi_struct, flow); /* Possibly more processing */ - return 1; + return flow->extra_packets_func != NULL; } void init_kerberos_dissector(struct ndpi_detection_module_struct *ndpi_struct, -- cgit v1.2.3