diff options
author | David Shaw <[email protected]> | 2005-01-13 22:09:33 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-01-13 22:09:33 +0000 |
commit | 522fd5bc8298632324818551cebc9d4841e01de2 (patch) | |
tree | 2622b4a0f00209cb21cc9f70d213c52270b27f43 | |
parent | * gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of (diff) | |
download | gnupg-522fd5bc8298632324818551cebc9d4841e01de2.tar.gz gnupg-522fd5bc8298632324818551cebc9d4841e01de2.zip |
* http.c (connect_server): Use INADDR_NONE instead of SOCKET_ERROR.
Noted by Timo.
Diffstat (limited to '')
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/http.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 012232ed7..42aed3bfa 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2005-01-13 David Shaw <[email protected]> + + * http.c (connect_server): Use INADDR_NONE instead of + SOCKET_ERROR. Noted by Timo. + 2005-01-06 Werner Koch <[email protected]> * strgutil.c (set_native_charset): Assume that ASCII, 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; |