From: Guus Sliepen Date: Fri, 24 Apr 2015 21:43:58 +0000 (+0200) Subject: Don't log an error message when receiving a TERMREQ. X-Git-Tag: release-1.1pre12~181 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0fda572c88d02b0b200ef81d72cc4da594fa0e38;p=oweals%2Ftinc.git Don't log an error message when receiving a TERMREQ. --- diff --git a/src/protocol.c b/src/protocol.c index 4f7e669..8627912 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -135,7 +135,8 @@ bool receive_request(connection_t *c, const char *request) { if(!request_handlers[reqno](c, request)) { /* Something went wrong. Probably scriptkiddies. Terminate. */ - logger(DEBUG_ALWAYS, LOG_ERR, "Error while processing %s from %s (%s)", request_name[reqno], c->name, c->hostname); + if(request != TERMREQ) + logger(DEBUG_ALWAYS, LOG_ERR, "Error while processing %s from %s (%s)", request_name[reqno], c->name, c->hostname); return false; } } else {