]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url: only acknowledge fresh_reuse for non-followed transfers
authorDaniel Stenberg <daniel@haxx.se>
Mon, 14 Nov 2022 09:29:54 +0000 (10:29 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 Nov 2022 13:53:15 +0000 (14:53 +0100)
... to make sure NTLM auth sticks to the connection it needs, as
verified by 2032.

Follow-up to fa0b9227616e

Assisted-by: Stefan Eissing
Closes #9905

lib/url.c

index 23038eb31b1c606dfe420c57b18c733260bb19c6..a9d89cc2c1543af4f2965288498672d49d2b88e2 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3907,7 +3907,7 @@ static CURLcode create_conn(struct Curl_easy *data,
      we only acknowledge this option if this is not a re-used connection
      already (which happens due to follow-location or during an HTTP
      authentication phase). CONNECT_ONLY transfers also refuse reuse. */
-  if((data->set.reuse_fresh && !data->state.this_is_a_follow) ||
+  if((data->set.reuse_fresh && !data->state.followlocation) ||
      data->set.connect_only)
     reuse = FALSE;
   else