Fixed a wrong sequence of starts in multicounter
Suppressed excessive connection messages from asynnet
This commit is contained in:
5
conman.c
5
conman.c
@ -2193,6 +2193,7 @@ int SCTaskFunction(void *pData)
|
||||
if (SCActive(self)) {
|
||||
return 1;
|
||||
} else {
|
||||
Log(INFO,"sys","Handle %d disconnected", self->sockHandle);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -2223,6 +2224,7 @@ int SCTaskFunction(void *pData)
|
||||
if (strstr(pPtr, "logoff") != NULL) {
|
||||
ANETclose(self->sockHandle);
|
||||
self->iEnd = 1;
|
||||
Log(INFO,"sys","Handle %d loging off", self->sockHandle);
|
||||
free(pPtr);
|
||||
return 1;
|
||||
}
|
||||
@ -2257,8 +2259,7 @@ int SCTaskFunction(void *pData)
|
||||
free(pPtr);
|
||||
return 1;
|
||||
} else {
|
||||
SCWrite(self, "ERROR: Bad login", eError);
|
||||
printf("Bad login string %s\n", pPtr);
|
||||
SCPrintf(self, eError, "ERROR: Bad login: %s", pPtr);
|
||||
}
|
||||
}
|
||||
free(pPtr);
|
||||
|
Reference in New Issue
Block a user