Fix typo 0fda572c88
that prevented some errors from being logged.
This commit is contained in:
parent
0fda572c88
commit
95594f4738
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ bool receive_request(connection_t *c, const char *request) {
|
|||
if(!request_handlers[reqno](c, request)) {
|
||||
/* Something went wrong. Probably scriptkiddies. Terminate. */
|
||||
|
||||
if(request != TERMREQ)
|
||||
if(reqno != TERMREQ)
|
||||
logger(DEBUG_ALWAYS, LOG_ERR, "Error while processing %s from %s (%s)", request_name[reqno], c->name, c->hostname);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue