From 676597e9618970e7e2dfdfe440b09c3aee625576 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 10 Apr 2006 21:49:55 +0000 Subject: Ates Goral found out that if you specified both CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT, the _longer_ time would wrongly be used for the SSL connection time-out! --- lib/ssluse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ssluse.c b/lib/ssluse.c index 60d174fd1..4a67b1124 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -1332,7 +1332,7 @@ Curl_ossl_connect_step2(struct connectdata *conn, /* get the most strict timeout of the ones converted to milliseconds */ if(data->set.timeout && - (data->set.timeout>data->set.connecttimeout)) + (data->set.timeoutset.connecttimeout)) *timeout_ms = data->set.timeout*1000; else *timeout_ms = data->set.connecttimeout*1000; -- cgit v1.2.3