]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: fix CURL_DISABLE_BEARER_AUTH breakage
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Sep 2023 06:46:56 +0000 (08:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 Sep 2023 11:33:31 +0000 (13:33 +0200)
When bearer auth was disabled, the if/else logic got wrong and caused
problems.

Follow-up to e92edfbef64448ef461
Fixes #11892
Reported-by: Aleksander Mazur
Closes #11895

lib/http.c

index e74aba32286d0e3cd22ac1d359c043c2aea7336f..c44132f4be0de41ff08046aee94b22e6992fd7f9 100644 (file)
@@ -1139,6 +1139,8 @@ CURLcode Curl_http_input_auth(struct Curl_easy *data, bool proxy,
                 data->state.authproblem = TRUE;
               }
             }
+#else
+           ;
 #endif
 
     /* there may be multiple methods on one line, so keep reading */