aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-08-21 10:25:45 +0100
committerSteve Holme <steve_holme@hotmail.com>2016-08-21 10:25:45 +0100
commit317795d1bf49e6ec048999c55d204093dd1626d4 (patch)
treeb4fa4b97c99caa3e98f04ad14310da63d1c6786b
parentb820e40f340f142b8475721538f768d59dc9c353 (diff)
http.c: Remove duplicate (authp->avail & CURLAUTH_DIGEST) check
From commit 2708d4259b.
-rw-r--r--lib/http.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/http.c b/lib/http.c
index fafb00b67..15991336a 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -858,11 +858,9 @@ CURLcode Curl_http_input_auth(struct connectdata *conn, bool proxy,
#endif
#ifndef CURL_DISABLE_CRYPTO_AUTH
if(checkprefix("Digest", auth)) {
- if((authp->avail & CURLAUTH_DIGEST) != 0) {
+ if((authp->avail & CURLAUTH_DIGEST) != 0)
infof(data, "Ignoring duplicate digest auth header.\n");
- }
- else if((authp->avail & CURLAUTH_DIGEST) ||
- Curl_auth_is_digest_supported()) {
+ else if(Curl_auth_is_digest_supported()) {
CURLcode result;
*availp |= CURLAUTH_DIGEST;