projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support ECDH key exchange.
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
cf6b9d4
..
29dd824
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-85,10
+85,10
@@
bool receive_meta(connection_t *c) {
- If not, keep stuff in buffer and exit.
*/
- If not, keep stuff in buffer and exit.
*/
- buffer_compact(&c->inbuf);
+ buffer_compact(&c->inbuf
, MAXBUFSIZE
);
if(sizeof inbuf <= c->inbuf.len) {
if(sizeof inbuf <= c->inbuf.len) {
- logger(LOG_ERR, "Input buffer full for %s (%s)
\n"
);
+ logger(LOG_ERR, "Input buffer full for %s (%s)
", c->name, c->hostname
);
return false;
}
return false;
}
@@
-138,6
+138,7
@@
bool receive_meta(connection_t *c) {
char *tcpbuffer = buffer_read(&c->inbuf, c->tcplen);
if(tcpbuffer) {
receive_tcppacket(c, tcpbuffer, c->tcplen);
char *tcpbuffer = buffer_read(&c->inbuf, c->tcplen);
if(tcpbuffer) {
receive_tcppacket(c, tcpbuffer, c->tcplen);
+ c->tcplen = 0;
continue;
} else {
break;
continue;
} else {
break;