mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 17:32:23 +00:00
nDPIsrvd: Fixed NUL pointer deref during logging attempt.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user