From 72763e0f7c916f359aaa586d94504a425fa1c784 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 5 Sep 2022 09:57:18 +0200 Subject: Fixed FastCGI memory issue (was not using nDPI's malloc wrapper). Signed-off-by: Toni Uhlig --- src/lib/protocols/fastcgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols/fastcgi.c') diff --git a/src/lib/protocols/fastcgi.c b/src/lib/protocols/fastcgi.c index fdbb91c09..9fad2c044 100644 --- a/src/lib/protocols/fastcgi.c +++ b/src/lib/protocols/fastcgi.c @@ -143,7 +143,7 @@ static int fcgi_parse_params(struct ndpi_flow_struct * const flow, if (flow->http.url == NULL && packet->http_url_name.len > 0) { - flow->http.url = malloc(packet->http_url_name.len + 1); + flow->http.url = ndpi_malloc(packet->http_url_name.len + 1); if (flow->http.url != NULL) { strncpy(flow->http.url, (char const *)packet->http_url_name.ptr, packet->http_url_name.len); -- cgit v1.2.3