minor modif
This commit is contained in:
parent
ec9ee77e92
commit
bd11d8e752
8
main.c
8
main.c
@ -227,11 +227,8 @@ int isinarray( int pid, int array[], int n )
|
|||||||
{
|
{
|
||||||
if( pid == array[x])
|
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;
|
return x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -563,6 +560,7 @@ int main()
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
memset(&conn, 0, sizeof(conn));
|
memset(&conn, 0, sizeof(conn));
|
||||||
|
ip[0] = '\0';
|
||||||
// get the sshd process ID (PID)
|
// get the sshd process ID (PID)
|
||||||
if ( (fh = fopen("/run/sshd.pid", "r" )) == NULL)
|
if ( (fh = fopen("/run/sshd.pid", "r" )) == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user