Fix typo 0fda572c88d02b0b200ef81d72cc4da594fa0e38 that prevented some errors from...
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Apr 2015 21:51:29 +0000 (23:51 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Apr 2015 21:51:29 +0000 (23:51 +0200)
src/protocol.c

index 8627912..efb9a18 100644 (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;
                }