From: Guus Sliepen Date: Sun, 13 May 2012 20:16:42 +0000 (+0200) Subject: Don't forget to send a newline when forwarding requests. X-Git-Tag: import-tinc-1.1~370 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=62b61a1b7c2382b1bade142b3a41a9b27c1fd40d;p=meshlink Don't forget to send a newline when forwarding requests. --- diff --git a/src/protocol.c b/src/protocol.c index 2b179a72..1e63f2ea 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -104,7 +104,7 @@ void forward_request(connection_t *from, const char *request) { char tmp[len + 1]; memcpy(tmp, request, len); tmp[len] = '\n'; - broadcast_meta(from, tmp, len); + broadcast_meta(from, tmp, sizeof tmp); } bool receive_request(connection_t *c, const char *request) {