* http.c (connect_server): Use INADDR_NONE instead of SOCKET_ERROR.
authorDavid Shaw <dshaw@jabberwocky.com>
Thu, 13 Jan 2005 22:09:33 +0000 (22:09 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Thu, 13 Jan 2005 22:09:33 +0000 (22:09 +0000)
Noted by Timo.

util/ChangeLog
util/http.c

index 012232e..42aed3b 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-13  David Shaw  <dshaw@jabberwocky.com>
+
+       * http.c (connect_server): Use INADDR_NONE instead of
+       SOCKET_ERROR.  Noted by Timo.
+
 2005-01-06  Werner Koch  <wk@g10code.com>
 
        * strgutil.c (set_native_charset): Assume that ASCII,
index 3be0059..5b9a53d 100644 (file)
@@ -775,7 +775,7 @@ connect_server( const char *server, ushort port, unsigned int flags,
   init_sockets();
   /* Win32 gethostbyname doesn't handle IP addresses internally, so we
      try inet_addr first on that platform only. */
-  if((inaddr=inet_addr(server))!=SOCKET_ERROR)
+  if((inaddr=inet_addr(server))!=INADDR_NONE)
     {
       struct sockaddr_in addr;