From 12dfc03116f63f53d05761d3847061b7e6ca6fd6 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Tue, 22 Sep 2015 15:41:22 +0530 Subject: [PATCH] Fix #46024. Support RFC 2069 Digest Authentication * http.c (digest_authentication_encode): Some servers are still using the obsolete RFC 2069 Digest Authentication. Allow Digest authentication without the qop parameter for this. Reported-by: Andreas Longwitz --- src/http.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/http.c b/src/http.c index 4c1052d5..a414daf2 100644 --- a/src/http.c +++ b/src/http.c @@ -4628,12 +4628,9 @@ digest_authentication_encode (const char *au, const char *user, xfree (qop); /* force freeing mem and return */ } - if (!realm || !nonce || !user || !passwd || !path || !method || !qop) + if (!realm || !nonce || !user || !passwd || !path || !method) { - if (!qop) - *auth_err = UNKNOWNATTR; - else - *auth_err = ATTRMISSING; + *auth_err = ATTRMISSING; xfree (realm); xfree (opaque);