 
Index: hostares.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/hostares.c,v
retrieving revision 1.33
diff -u -r1.33 hostares.c
--- hostares.c	27 Sep 2007 12:05:39 -0000	1.33
+++ hostares.c	3 Oct 2007 02:55:03 -0000
@@ -254,7 +254,7 @@
     tvp = ares_timeout(data->state.areschannel, &store, &tv);
 
     /* use the timeout period ares returned to us above */
-    ares_waitperform(conn, tv.tv_sec * 1000 + tv.tv_usec/1000);
+    ares_waitperform(conn, tvp->tv_sec * 1000 + tvp->tv_usec/1000);
 
     if(conn->async.done)
       break;
