diff options
Diffstat (limited to '')
-rw-r--r-- | util/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/http.c b/util/http.c index 3be005982..5b9a53d7e 100644 --- a/util/http.c +++ b/util/http.c @@ -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; |