]> granicus.if.org Git - curl/commitdiff
connection timeout comparison fix by Emil
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2002 10:05:18 +0000 (10:05 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2002 10:05:18 +0000 (10:05 +0000)
lib/connect.c

index 34fc1e844232c841210fdf77dc7edcbe91047873..b1a2560b26ce8286111673b00d9de361dbac1142 100644 (file)
@@ -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;