From: Guus Sliepen Date: Fri, 14 Oct 2016 12:27:49 +0000 (+0200) Subject: Log only the first line of a proxy request rejection message. X-Git-Tag: release-1.0.30~8 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=f2835ed9f5b4fbbaa453b6968dbf82e0afcbff3a;p=tinc Log only the first line of a proxy request rejection message. --- diff --git a/src/proxy.c b/src/proxy.c index 22d49471..227be4a5 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -277,6 +277,8 @@ int receive_proxy_meta(connection_t *c, int start, int lenin) { c->allow_request = ID; return replen; } else { + p = memchr(c->buffer, '\n', c->buflen); + p[-1] = 0; logger(LOG_ERR, "Proxy request rejected: %s", c->buffer + 9); return false; }