From 38c71af2f481be0a51006dd894f680988f867b8d Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 10 Sep 2022 16:46:25 +0200 Subject: nDPIsrvd: Fixed NUL pointer deref during logging attempt. Signed-off-by: Toni Uhlig --- nDPIsrvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nDPIsrvd.c b/nDPIsrvd.c index 37894be88..6451fbce0 100644 --- a/nDPIsrvd.c +++ b/nDPIsrvd.c @@ -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; } -- cgit v1.2.3