aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-09-05 09:57:18 +0200
committerToni Uhlig <matzeton@googlemail.com>2022-09-05 09:57:18 +0200
commit72763e0f7c916f359aaa586d94504a425fa1c784 (patch)
treef730a5ea03d6e18efd414f1b615be017ff5045ad
parentb7c103080493f93b2594b878656076d238211ba0 (diff)
Fixed FastCGI memory issue (was not using nDPI's malloc wrapper).fix/use-fastcgi-malloc-wrapper
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--src/lib/protocols/fastcgi.c2
1 files changed, 1 insertions, 1 deletions
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);