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:
@@ -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)
|
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)
|
if (flow->http.url != NULL)
|
||||||
{
|
{
|
||||||
strncpy(flow->http.url, (char const *)packet->http_url_name.ptr, packet->http_url_name.len);
|
strncpy(flow->http.url, (char const *)packet->http_url_name.ptr, packet->http_url_name.len);
|
||||||
|
|||||||
Reference in New Issue
Block a user