From: wessels <> Date: Mon, 6 Apr 1998 03:28:03 +0000 (+0000) Subject: sendto return value bug X-Git-Tag: SQUID_3_0_PRE1~3622 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f80ddf13220293633eae5034381a8fdc920e00f;p=thirdparty%2Fsquid.git sendto return value bug --- diff --git a/src/icp_v2.cc b/src/icp_v2.cc index 866cef4668..b4b38e6930 100644 --- a/src/icp_v2.cc +++ b/src/icp_v2.cc @@ -96,7 +96,7 @@ icpUdpSend(int fd, inet_ntoa(to->sin_addr), ntohs(to->sin_port)); x = comm_udp_sendto(fd, to, sizeof(*to), msg, len); - if (0 == x) { + if (x >= 0) { /* successfully written */ icpLogIcp(to->sin_addr, logcode, len, (char *) (msg + 1), delay); safe_free(msg);