aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ChangeLog4
-rw-r--r--util/http.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 15bfbde80..4cb53c792 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-03 Werner Koch <[email protected]>
+
+ * http.c (connect_server): Define ERR outside of the !W32 block.
+
2005-02-01 David Shaw <[email protected]>
* http.c (connect_server): Fix fd leak when connecting to a
diff --git a/util/http.c b/util/http.c
index 989abd150..19393c360 100644
--- a/util/http.c
+++ b/util/http.c
@@ -930,13 +930,13 @@ connect_server( const char *server, ushort port, unsigned int flags,
if(!connected)
{
+ int err=errno;
#ifdef _WIN32
if(hostfound)
log_error("%s: Unable to connect: ec=%d\n",server,(int)WSAGetLastError());
else
log_error("%s: Host not found: ec=%d\n",server,(int)WSAGetLastError());
#else
- int err=errno;
if(hostfound)
log_error("%s: %s\n",server,strerror(err));
else