minor modif
This commit is contained in:
parent
ec9ee77e92
commit
bd11d8e752
4
main.c
4
main.c
@ -226,12 +226,9 @@ int isinarray( int pid, int array[], int n )
|
|||||||
for(x=1;x<=n;x++)
|
for(x=1;x<=n;x++)
|
||||||
{
|
{
|
||||||
if( pid == array[x])
|
if( pid == array[x])
|
||||||
{
|
|
||||||
if (loglevel >= DEBUG )
|
|
||||||
{
|
{
|
||||||
sprintf(strlog, "pid %i is in array", pid);
|
sprintf(strlog, "pid %i is in array", pid);
|
||||||
printlog(strlog, DEBUG, 0 );
|
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