diff options
author | Toni <matzeton@googlemail.com> | 2022-09-05 10:46:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 10:46:02 +0200 |
commit | 378b0c5953aa9a1a82bfd68dc058e0eb893edf21 (patch) | |
tree | dca2f14325c0287c53dfe9623d496d798357b0fb /src/lib/protocols/fastcgi.c | |
parent | 95c1daa851deab7e0c7f5b4b31ee1e4232a5136e (diff) |
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>
Diffstat (limited to 'src/lib/protocols/fastcgi.c')
-rw-r--r-- | src/lib/protocols/fastcgi.c | 2 |
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); |