From 1b3de449a1192a2d834f43901f4dd8b45edbf011 Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Tue, 6 Sep 2022 12:02:23 +0200 Subject: HTTP: correctly set the classification protocols Classification should always be set via `ndpi_set_detected_protocol()` to be sure to set a correct `confidence` value, too. Having a "known" protocol stack with `NDPI_CONFIDENCE_UNKNOWN` as confidence, is not valid. This code in HTTP dissector likely needs some more thoughts (the classification itself of the attached example doesn't make a lot of sense), but the goal of this commit is only to always have a valid `confidence` value. --- tests/pcap/http_guessed_host_and_guessed.pcapng | Bin 0 -> 268 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/pcap/http_guessed_host_and_guessed.pcapng (limited to 'tests/pcap') diff --git a/tests/pcap/http_guessed_host_and_guessed.pcapng b/tests/pcap/http_guessed_host_and_guessed.pcapng new file mode 100644 index 000000000..ec293a101 Binary files /dev/null and b/tests/pcap/http_guessed_host_and_guessed.pcapng differ -- cgit v1.2.3