diff options
author | emanuele-f <black.silver@hotmail.it> | 2017-04-02 11:17:57 +0200 |
---|---|---|
committer | emanuele-f <black.silver@hotmail.it> | 2017-04-02 11:17:57 +0200 |
commit | 0659f9b592cff1718ae1b74060a573f4cbe9a6d5 (patch) | |
tree | a6a24fc272008d7b21118e47dbbcf732f9a88da0 | |
parent | 0390c8ccfb7f3908cd3867262d3121c461fea9e7 (diff) |
Replace BSD dependent strnstr with ndpi portable one
-rw-r--r-- | src/lib/protocols/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 61d59f856..0b734fa84 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -617,7 +617,7 @@ static void ndpi_check_http_tcp(struct ndpi_detection_module_struct *ndpi_struct /* Check for Ookla */ if((packet->referer_line.len > 0) - && strnstr((const char *)packet->referer_line.ptr, "www.speedtest.net", packet->referer_line.len)) { + && ndpi_strnstr((const char *)packet->referer_line.ptr, "www.speedtest.net", packet->referer_line.len)) { ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_OOKLA, NDPI_PROTOCOL_HTTP); return; } |