1
0

minor modif

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

4
main.c
View File

@ -226,12 +226,9 @@ int isinarray( int pid, int array[], int n )
for(x=1;x<=n;x++)
{
if( pid == array[x])
{
if (loglevel >= DEBUG )
{
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)
{