Fixed FastCGI memory issue (was not using nDPI's malloc wrapper). (#1722)

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2022-09-05 10:46:02 +02:00
committed by GitHub
parent 95c1daa851
commit 378b0c5953
+1 -1
View File
@@ -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);