Don't log an error message when receiving a TERMREQ.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Apr 2015 21:43:58 +0000 (23:43 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Apr 2015 21:43:58 +0000 (23:43 +0200)
src/protocol.c

index 4f7e669..8627912 100644 (file)
@@ -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 {