From 95594f47384b60a6f994f0fca6fd9f79b2b283aa Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 24 Apr 2015 23:51:29 +0200 Subject: [PATCH] Fix typo 0fda572c88d02b0b200ef81d72cc4da594fa0e38 that prevented some errors from being logged. --- src/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index 8627912e..efb9a18e 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -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; } -- 2.20.1