aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-16 22:26:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-16 22:26:01 +0000
commit5c6eddcadd65432b8739117a161cb8062be997d9 (patch)
treea9d08d9d708ed43f35086fd5f14971d5860e9da5 /lib
parentb3b4786990e94216bc5319621ad7b36602a6f704 (diff)
fixed time-out returned without error text set
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 61e45689e..34fc1e844 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -369,9 +369,11 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
/* subtract the passed time */
timeout_ms -= (long)has_passed;
- if(timeout_ms < 0)
+ if(timeout_ms < 0) {
/* a precaution, no need to continue if time already is up */
+ failf(data, "Connection time-out");
return CURLE_OPERATION_TIMEOUTED;
+ }
}
#ifdef ENABLE_IPV6