Don't treat packets coming in via TCP as having zero length.

This commit is contained in:
Guus Sliepen 2011-06-02 21:16:57 +02:00
parent 80ca91769d
commit c6b0e102ad

View file

@ -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;