projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58007d7
)
Don't forget to send a newline when forwarding requests.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 13 May 2012 20:16:42 +0000
(22:16 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 13 May 2012 20:16:42 +0000
(22:16 +0200)
src/protocol.c
patch
|
blob
|
history
diff --git
a/src/protocol.c
b/src/protocol.c
index 2b179a72608c4cee65fcaccf548ac69787c50084..1e63f2ea2e2ee1e28a4f81673f6fc8d15222aa14 100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-104,7
+104,7
@@
void forward_request(connection_t *from, const char *request) {
char tmp[len + 1];
memcpy(tmp, request, len);
tmp[len] = '\n';
- broadcast_meta(from, tmp,
len
);
+ broadcast_meta(from, tmp,
sizeof tmp
);
}
bool receive_request(connection_t *c, const char *request) {