From: Guus Sliepen Date: Sun, 22 May 2011 12:02:27 +0000 (+0200) Subject: Reset tcplen after use. X-Git-Tag: import-tinc-1.1~522 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=54c900e961de6065f607f5661edeb7c84be29ea5;p=meshlink Reset tcplen after use. --- diff --git a/src/meta.c b/src/meta.c index 5735da7e..e56c86f9 100644 --- a/src/meta.c +++ b/src/meta.c @@ -137,6 +137,7 @@ 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); continue; } else {