aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-11-23 19:54:06 +0100
committerLuca Deri <deri@ntop.org>2019-11-23 19:54:06 +0100
commit509cfcb5560cd00bbd2f6d651ac8829147e08729 (patch)
tree8b56529fd0337e565cb9302727c8c9f303ef80d9 /src/lib/protocols
parent3b203d57e97d3bc48762bbee61e3524fccb4632d (diff)
Fixed invalid category matching in HTTP
Fixed overlapping categories
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/http.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 2525cfbd7..6b26a7dc3 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -287,17 +287,6 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
NDPI_LOG_DBG2(ndpi_struct, "HOST line found %.*s\n",
packet->host_line.len, packet->host_line.ptr);
- /* call ndpi_match_host_subprotocol to see if there is a match with known-host HTTP subprotocol */
- if(flow->http_detected) {
- ndpi_protocol_match_result ret_match;
-
- ndpi_match_host_subprotocol(ndpi_struct, flow,
- (char*)packet->host_line.ptr,
- packet->host_line.len,
- &ret_match,
- NDPI_PROTOCOL_HTTP);
- }
-
/* Copy result for nDPI apps */
if(!ndpi_struct->disable_metadata_export) {
len = ndpi_min(packet->host_line.len, sizeof(flow->host_server_name)-1);
@@ -305,7 +294,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
flow->host_server_name[len] = '\0';
flow->extra_packets_func = NULL; /* We're good now */
}
-
+
flow->server_id = flow->dst;
if(packet->forwarded_line.ptr) {