From 378b0c5953aa9a1a82bfd68dc058e0eb893edf21 Mon Sep 17 00:00:00 2001 From: Toni Date: Mon, 5 Sep 2022 10:46:02 +0200 Subject: Fixed FastCGI memory issue (was not using nDPI's malloc wrapper). (#1722) Signed-off-by: Toni Uhlig 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