From bd11d8e7527af57c65d54cb589e881bde39f25fa Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 8 Jun 2020 14:13:49 +0200 Subject: [PATCH] minor modif --- main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 89ed6b3..79abf45 100644 --- a/main.c +++ b/main.c @@ -227,11 +227,8 @@ int isinarray( int pid, int array[], int n ) { if( pid == array[x]) { - if (loglevel >= DEBUG ) - { - sprintf(strlog, "pid %i is in array", pid); - printlog(strlog, DEBUG, 0 ); - } + sprintf(strlog, "pid %i is in array", pid); + printlog(strlog, DEBUG, 0 ); return x; } } @@ -563,6 +560,7 @@ int main() while (1) { memset(&conn, 0, sizeof(conn)); + ip[0] = '\0'; // get the sshd process ID (PID) if ( (fh = fopen("/run/sshd.pid", "r" )) == NULL) {