From: Steve Holme Date: Sun, 21 Aug 2016 09:25:45 +0000 (+0100) Subject: http.c: Remove duplicate (authp->avail & CURLAUTH_DIGEST) check X-Git-Tag: curl-7_50_2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=317795d1bf49e6ec048999c55d204093dd1626d4;p=thirdparty%2Fcurl.git http.c: Remove duplicate (authp->avail & CURLAUTH_DIGEST) check From commit 2708d4259b. --- diff --git a/lib/http.c b/lib/http.c index fafb00b67e..15991336ad 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;