]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
sendto return value bug
authorwessels <>
Mon, 6 Apr 1998 03:28:03 +0000 (03:28 +0000)
committerwessels <>
Mon, 6 Apr 1998 03:28:03 +0000 (03:28 +0000)
src/icp_v2.cc

index 866cef46682be873d6cf05382e8e2d0ba021fc9c..b4b38e693042f6d614649fa585d242b70272adf0 100644 (file)
@@ -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);