aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 7620988aa..91ed90460 100644
--- 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);