From c387db645184877d1236ef4dd76da1e5671ec561 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Tue, 22 Sep 2015 16:36:40 +0530 Subject: [PATCH] Do not test for impossible qop value * http.c (digest_authentication_encode): Wget already errors out if qop != "auth". Then it makes no sense to test for qop == "auth-int" later on. Currently, Wget does not support the "auth-int" qop value and till nobidy requests, it may remain so. --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index a414daf2..93fc2da0 100644 --- a/src/http.c +++ b/src/http.c @@ -4684,7 +4684,7 @@ digest_authentication_encode (const char *au, const char *user, md5_finish_ctx (&ctx, hash); dump_hash (a2buf, hash); - if (qop && (!strcmp(qop, "auth") || !strcmp (qop, "auth-int"))) + if (qop && !strcmp(qop, "auth")) { /* RFC 2617 Digest Access Authentication */ /* generate random hex string */