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 4f7e6697653ec3e88590a109df64938a1631ba52..8627912ef3f773075c5b35c2d430a2738ced84e1 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 {