projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ddcad5
)
Reset tcplen after use.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 22 May 2011 12:02:27 +0000
(14:02 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 22 May 2011 12:02:27 +0000
(14:02 +0200)
src/meta.c
patch
|
blob
|
history
diff --git
a/src/meta.c
b/src/meta.c
index
5735da7
..
e56c86f
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-137,6
+137,7
@@
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);
continue;
} else {