projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always compact the buffer if it has reached MAXBUFSIZE.
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
cf6b9d4
..
5735da7
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)\n"
, c, c->hostname
);
return false;
}
return false;
}