nDPIsrvd: Fixed NUL pointer deref during logging attempt.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-09-10 16:46:25 +02:00
parent ac2e5ed796
commit 38c71af2f4

View File

@@ -1209,7 +1209,7 @@ static int handle_incoming_data(int epollfd, struct remote_desc * const current)
}
if (bytes_read == 0)
{
logger_nDPIsrvd(0, "Collector connection", "closed during read");
logger_nDPIsrvd(current, "Collector connection", "closed during read");
disconnect_client(epollfd, current);
return 1;
}