X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmeta.c;h=29dd824042754358bba1a0efaec4698b782e70b1;hb=3fba80174dbe29bcfe0d121a2a1d2e61be5ee57b;hp=5735da7e8d1b60f180d7174c97030f444c8442e7;hpb=931e30f91a9241ab8aa705c911c92ba8943f80fd;p=tinc diff --git a/src/meta.c b/src/meta.c index 5735da7e..29dd8240 100644 --- a/src/meta.c +++ b/src/meta.c @@ -88,7 +88,7 @@ bool receive_meta(connection_t *c) { buffer_compact(&c->inbuf, MAXBUFSIZE); if(sizeof inbuf <= c->inbuf.len) { - logger(LOG_ERR, "Input buffer full for %s (%s)\n", c, c->hostname); + logger(LOG_ERR, "Input buffer full for %s (%s)", c->name, c->hostname); return false; } @@ -138,6 +138,7 @@ bool receive_meta(connection_t *c) { char *tcpbuffer = buffer_read(&c->inbuf, c->tcplen); if(tcpbuffer) { receive_tcppacket(c, tcpbuffer, c->tcplen); + c->tcplen = 0; continue; } else { break;