Reset tcplen after use.
This commit is contained in:
parent
8ddcad5fa1
commit
54c900e961
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue