X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=jbsockets.c;h=e22d40750dd2d673b51299ce1a465125d2da2142;hb=fba6188c4f199dde302c898eb59982e9ba8664f6;hp=2b268f41875f0b5211b9feec40be2cff67b660c3;hpb=9bbe748d37c0ee2502d94d491420d01ce5fded5b;p=privoxy.git diff --git a/jbsockets.c b/jbsockets.c index 2b268f41..e22d4075 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1,4 +1,4 @@ -const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.35.2.4 2003/04/04 12:40:20 oes Exp $"; +const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.35.2.5 2003/04/29 11:32:54 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/Attic/jbsockets.c,v $ @@ -35,6 +35,10 @@ const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.35.2.4 2003/04/04 12:40:20 oe * * Revisions : * $Log: jbsockets.c,v $ + * Revision 1.35.2.5 2003/04/29 11:32:54 oes + * Don't rely on h_addr being non-NULL after gethostbyname. + * Works around an oddness in Max OSX and closes bug #724796 + * * Revision 1.35.2.4 2003/04/04 12:40:20 oes * Made sure the errno set by bind, not close[socket] is used in * bind_port. Probably fixes bugs #713777, #705562. @@ -339,7 +343,7 @@ jb_socket connect_to(const char *host, int portnum, struct client_state *csp) #ifdef TCP_NODELAY { /* turn off TCP coalescence */ int mi = 1; - setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, (char *) &mi, sizeof (int)); + setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *) &mi, sizeof (int)); } #endif /* def TCP_NODELAY */