Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: fix CURL_DISABLE_BEARER_AUTH breakage #11895

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Sep 20, 2023

When bearer auth was disabled, the if/else logic got wrong and caused problems.

Follow-up to e92edfb
Fixes #11892
Reported-by: Aleksander Mazur

When bearer auth was disabled, the if/else logic got wrong and caused
problems.

Follow-up to e92edfb
Fixes #11892
Reported-by: Aleksander Mazur
@bagder bagder closed this in 0d3956b Sep 20, 2023
@bagder bagder deleted the bagder/http-disabled-auth branch September 20, 2023 11:36
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
When bearer auth was disabled, the if/else logic got wrong and caused
problems.

Follow-up to e92edfb
Fixes curl#11892
Reported-by: Aleksander Mazur
Closes curl#11895
vszakats added a commit to vszakats/curl that referenced this pull request Oct 29, 2023
```
./curl/lib/http.c:737:12: warning: unused variable 'result' [-Wunused-variable]
  CURLcode result = CURLE_OK;
           ^
./curl/lib/http.c:1143:12: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
           ;
           ^
./curl/lib/http.c:995:18: warning: variable 'availp' set but not used [-Wunused-but-set-variable]
  unsigned long *availp;
                 ^
./curl/lib/http.c:996:16: warning: variable 'authp' set but not used [-Wunused-but-set-variable]
  struct auth *authp;
               ^
./curl/lib/http.c:979:12: warning: unused function 'is_valid_auth_separator' [-Wunused-function]
static int is_valid_auth_separator(char ch)
           ^
5 warnings generated.
```

Follow-up to 0d3956b curl#11895
Follow-up to e92edfb curl#11490

Closes #xxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

curl enters busy loop when POSTing HTTP/2 to IBM Cloud using digest auth
1 participant