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:
d878230
)
Send one less byte from an ANS_KEY request.
author
Ivo Timmermans
<ivo@lychnis.net>
Sun, 30 Apr 2000 19:03:00 +0000
(19:03 +0000)
committer
Ivo Timmermans
<ivo@lychnis.net>
Sun, 30 Apr 2000 19:03:00 +0000
(19:03 +0000)
src/protocol.c
patch
|
blob
|
history
diff --git
a/src/protocol.c
b/src/protocol.c
index 96da23f032610458a03196276d4ca1355180ccb8..4935dc233ba3c14bab43717ff20b207626453477 100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-789,7
+789,7
@@
cp
syslog(LOG_DEBUG, "Forwarding public key to " IP_ADDR_S,
IP_ADDR_V(fw->nexthop->vpn_ip));
tmp.type = ANS_KEY;
- if(write(fw->nexthop->meta_socket, &tmp, sizeof(tmp) -
1
) < 0)
+ if(write(fw->nexthop->meta_socket, &tmp, sizeof(tmp) -
2
) < 0)
{
syslog(LOG_ERR, "send failed: %s:%d: %m", __FILE__, __LINE__);
return -1;