From 6fab62060c9cc173bb46e5dfbebe0c3f2ad72d72 Mon Sep 17 00:00:00 2001 From: Gian Sass Date: Fri, 21 Jun 2019 22:45:04 +0200 Subject: [PATCH] Fix -p option crashing --- ntop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntop.c b/ntop.c index d47d459..67b7fd1 100644 --- a/ntop.c +++ b/ntop.c @@ -634,7 +634,7 @@ static void PollProcessList(DWORD UpdateTime) if(FilterByPID) { BOOL InFilter = FALSE; - for(DWORD PidIndex = 0; i < PidFilterCount; PidIndex++) { + for(DWORD PidIndex = 0; PidIndex < PidFilterCount; PidIndex++) { if(PidFilterList[PidIndex] == Process.ID) { InFilter = TRUE; }