From 54c900e961de6065f607f5661edeb7c84be29ea5 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 22 May 2011 14:02:27 +0200 Subject: [PATCH] Reset tcplen after use. --- src/meta.c | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.20.1