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);