]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http.c: Remove duplicate (authp->avail & CURLAUTH_DIGEST) check
authorSteve Holme <steve_holme@hotmail.com>
Sun, 21 Aug 2016 09:25:45 +0000 (10:25 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 21 Aug 2016 09:25:45 +0000 (10:25 +0100)
From commit 2708d4259b.

lib/http.c

index fafb00b67eb18a92d021ee00ac77fc85920dc2e2..15991336ad8fdf1ade75d06b828c932630dd3ff4 100644 (file)
@@ -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;