From c6b0e102ad7caabae6876849c97f8acaecf5bc1a Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 2 Jun 2011 21:16:57 +0200 Subject: [PATCH] Don't treat packets coming in via TCP as having zero length. --- src/meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1