1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* http.c (connect_server): Use INADDR_NONE instead of SOCKET_ERROR.

Noted by Timo.
This commit is contained in:
David Shaw 2005-01-13 22:09:33 +00:00
parent 3fe489d1ac
commit 522fd5bc82
2 changed files with 6 additions and 1 deletions

View 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;