From: Guus Sliepen Date: Fri, 24 Apr 2015 21:51:29 +0000 (+0200) Subject: Fix typo 0fda572c88d02b0b200ef81d72cc4da594fa0e38 that prevented some errors from... X-Git-Tag: release-1.1pre12~180 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=95594f47384b60a6f994f0fca6fd9f79b2b283aa;p=tinc Fix typo 0fda572c88d02b0b200ef81d72cc4da594fa0e38 that prevented some errors from being logged. --- 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; }