From: Daniel Stenberg Date: Wed, 20 Sep 2023 06:46:56 +0000 (+0200) Subject: http: fix CURL_DISABLE_BEARER_AUTH breakage X-Git-Tag: curl-8_4_0~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d3956b8c6558b3077fc7aabbf853b86058becd1;p=thirdparty%2Fcurl.git http: fix CURL_DISABLE_BEARER_AUTH breakage 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 --- diff --git a/lib/http.c b/lib/http.c index e74aba3228..c44132f4be 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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 */