From: Guus Sliepen Date: Thu, 2 Jun 2011 19:16:57 +0000 (+0200) Subject: Don't treat packets coming in via TCP as having zero length. X-Git-Tag: release-1.1pre1~19 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=c6b0e102ad7caabae6876849c97f8acaecf5bc1a;p=tinc Don't treat packets coming in via TCP as having zero length. --- diff --git a/src/meta.c b/src/meta.c index 849a0c69..29dd8240 100644 --- a/src/meta.c +++ b/src/meta.c @@ -137,8 +137,8 @@ bool receive_meta(connection_t *c) { if(c->tcplen) { char *tcpbuffer = buffer_read(&c->inbuf, c->tcplen); if(tcpbuffer) { - c->tcplen = 0; receive_tcppacket(c, tcpbuffer, c->tcplen); + c->tcplen = 0; continue; } else { break;