From: Ivo Timmermans Date: Sun, 30 Apr 2000 19:03:00 +0000 (+0000) Subject: Send one less byte from an ANS_KEY request. X-Git-Tag: release-1.0pre1~26 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b4290c3f4360f3cf01bb44957da0d8a20eac75f3;p=oweals%2Ftinc.git Send one less byte from an ANS_KEY request. --- diff --git a/src/protocol.c b/src/protocol.c index 96da23f..4935dc2 100644 --- 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;