Fix typo 0fda572c88 that prevented some errors from being logged.

This commit is contained in:
Guus Sliepen 2015-04-24 23:51:29 +02:00
parent 0fda572c88
commit 95594f4738

View file

@ -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;
}