From: Daniel Stenberg Date: Mon, 18 Feb 2002 10:05:18 +0000 (+0000) Subject: connection timeout comparison fix by Emil X-Git-Tag: curl-7_9_5-pre2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e21926f7f081b0eb18962374770e91648a8d5fc3;p=thirdparty%2Fcurl.git connection timeout comparison fix by Emil --- diff --git a/lib/connect.c b/lib/connect.c index 34fc1e8442..b1a2560b26 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -361,7 +361,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ /* get the most strict timeout of the ones converted to milliseconds */ if(data->set.timeout && - (data->set.timeout>data->set.connecttimeout)) + (data->set.timeout < data->set.connecttimeout)) timeout_ms = data->set.timeout*1000; else timeout_ms = data->set.connecttimeout*1000;