summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-08 23:23:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-08 23:23:24 +0000
commitd57e09889a435cd525e811a6fe61a2b56a09189f (patch)
treea31686fc07b2002fe0321af2483cc1cebf0b3133
parenteecb86bfb0cd0fada5bdeb3c8d069f194b08208b (diff)
downloadgnurl-d57e09889a435cd525e811a6fe61a2b56a09189f.tar.gz
gnurl-d57e09889a435cd525e811a6fe61a2b56a09189f.tar.bz2
gnurl-d57e09889a435cd525e811a6fe61a2b56a09189f.zip
added a missing failf() before returning an error code
-rw-r--r--lib/ssluse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 3c4728ab6..47ae497f0 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -783,9 +783,11 @@ Curl_SSLConnect(struct connectdata *conn)
/* 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 */
- return CURLE_OPERATION_TIMEOUTED;
+ failf(data, "SSL connection timeout");
+ return CURLE_OPERATION_TIMEOUTED;
+ }
}
else
/* no particular time-out has been set */