Reset tcplen after use.

This commit is contained in:
Guus Sliepen 2011-05-22 14:02:27 +02:00
parent 8ddcad5fa1
commit 54c900e961

View file

@ -137,6 +137,7 @@ bool receive_meta(connection_t *c) {
if(c->tcplen) { if(c->tcplen) {
char *tcpbuffer = buffer_read(&c->inbuf, c->tcplen); char *tcpbuffer = buffer_read(&c->inbuf, c->tcplen);
if(tcpbuffer) { if(tcpbuffer) {
c->tcplen = 0;
receive_tcppacket(c, tcpbuffer, c->tcplen); receive_tcppacket(c, tcpbuffer, c->tcplen);
continue; continue;
} else { } else {