diff options
author | Luca <deri@ntop.org> | 2020-01-01 12:59:19 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2020-01-01 12:59:19 +0100 |
commit | daae1cc9b1ae6b7c6b4187003fabb2a6ffab44f0 (patch) | |
tree | c6e7918b0ea56416fa6ccdd1db3f1e04f217a2f5 /src/lib/protocols/http.c | |
parent | 499c80535b572a0746d83dcbe2eb232e31434bc4 (diff) |
Reworked TLS dissection
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index b599b82a9..0e995aa46 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -159,14 +159,12 @@ static void ndpi_http_parse_subprotocol(struct ndpi_detection_module_struct *ndp struct ndpi_flow_struct *flow) { if((flow->l4.tcp.http_stage == 0) || (flow->http.url && flow->http_detected)) { char *double_col = strchr((char*)flow->host_server_name, ':'); - ndpi_protocol_match_result ret_match; if(double_col) double_col[0] = '\0'; - ndpi_match_host_subprotocol(ndpi_struct, flow, (char *)flow->host_server_name, - strlen((const char *)flow->host_server_name), - &ret_match, - NDPI_PROTOCOL_HTTP); + ndpi_match_hostname_protocol(ndpi_struct, flow, NDPI_PROTOCOL_HTTP, + (char *)flow->host_server_name, + strlen((const char *)flow->host_server_name)); } } |