Don't treat packets coming in via TCP as having zero length.
This commit is contained in:
parent
80ca91769d
commit
c6b0e102ad
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue