diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2025-01-25 05:36:07 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2025-01-25 05:36:07 +0100 |
commit | e946f49aca13e4447a7d7b2acae6323a4531fb55 (patch) | |
tree | 150fab58cdfec53fab4a2829bfc94f3187684526 | |
parent | dac31d8882c329eecacf9132e75bbb32e6c3f252 (diff) |
Explicit cast Referer / Host line to the type `ndpi_strnstr(...)` expects (unsigned char -> char)HEADdev
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | src/lib/protocols/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 9064f7282..5c611d8d8 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -1063,10 +1063,10 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_ } if((packet->referer_line.ptr != NULL) && (flow->http.referer == NULL)) - flow->http.referer = ndpi_strndup(packet->referer_line.ptr, packet->referer_line.len); + flow->http.referer = ndpi_strndup((const char *)packet->referer_line.ptr, packet->referer_line.len); if((packet->host_line.ptr != NULL) && (flow->http.host == NULL)) - flow->http.host = ndpi_strndup(packet->host_line.ptr, packet->host_line.len); + flow->http.host = ndpi_strndup((const char *)packet->host_line.ptr, packet->host_line.len); if(packet->content_line.ptr != NULL) { NDPI_LOG_DBG2(ndpi_struct, "Content Type line found %.*s\n", |