projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80ca917
)
Don't treat packets coming in via TCP as having zero length.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 2 Jun 2011 19:16:57 +0000
(21:16 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 2 Jun 2011 19:16:57 +0000
(21:16 +0200)
src/meta.c
patch
|
blob
|
history
diff --git
a/src/meta.c
b/src/meta.c
index
849a0c6
..
29dd824
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-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;