mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-25 22:19:59 +01:00
* gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of
SOCKET_ERROR. Noted by Timo.
This commit is contained in:
parent
d8ec7c96aa
commit
3fe489d1ac
@ -1,3 +1,8 @@
|
||||
2005-01-13 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of
|
||||
SOCKET_ERROR. Noted by Timo.
|
||||
|
||||
2005-01-09 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgkeys_curl.c (get_key): Newer versions of libcurl don't define
|
||||
|
@ -120,7 +120,7 @@ connect_server (const char *server, unsigned short port)
|
||||
|
||||
/* Win32 gethostbyname doesn't handle IP addresses internally, so we
|
||||
try inet_addr first on that platform only. */
|
||||
if ((l = inet_addr (server)) != SOCKET_ERROR)
|
||||
if ((l = inet_addr (server)) != INADDR_NONE)
|
||||
memcpy (&addr.sin_addr, &l, sizeof l);
|
||||
else if ((hp = gethostbyname (server)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user