]> granicus.if.org Git - curl/commitdiff
corrected the reuse_fresh condition
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 Mar 2004 14:00:44 +0000 (14:00 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Mar 2004 14:00:44 +0000 (14:00 +0000)
lib/url.c

index 7620988aabd8eb3e4207c2bf8a287dedc095b51c..91ed90460bd0ae89a75f8d8073532c05a9cda99a 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2875,7 +2875,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
      we only acknowledge this option if this is not a re-used connection
      already (which happens due to follow-location or during a HTTP
      authentication phase). */
-  if(data->set.reuse_fresh && !conn->bits.reuse)
+  if(data->set.reuse_fresh && !data->state.this_is_a_follow)
     reuse = FALSE;
   else 
     reuse = ConnectionExists(data, conn, &conn_temp);