1
0

minor modif

This commit is contained in:
Daniel Tartavel 2020-06-08 14:13:49 +02:00
parent ec9ee77e92
commit bd11d8e752

8
main.c
View File

@ -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)
{