Fixes #740
This commit is contained in:
@@ -166,7 +166,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
|
|||||||
|
|
||||||
flow->http.url = ndpi_malloc(len);
|
flow->http.url = ndpi_malloc(len);
|
||||||
if(flow->http.url) {
|
if(flow->http.url) {
|
||||||
strncpy(flow->http.url, "http://", 7);
|
strcpy(flow->http.url, "http://");
|
||||||
strncpy(&flow->http.url[7], (char*)packet->host_line.ptr, packet->host_line.len);
|
strncpy(&flow->http.url[7], (char*)packet->host_line.ptr, packet->host_line.len);
|
||||||
strncpy(&flow->http.url[7+packet->host_line.len], (char*)packet->http_url_name.ptr,
|
strncpy(&flow->http.url[7+packet->host_line.len], (char*)packet->http_url_name.ptr,
|
||||||
packet->http_url_name.len);
|
packet->http_url_name.len);
|
||||||
|
|||||||
Reference in New Issue
Block a user