aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-30 13:02:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-30 13:02:31 +0000
commit7ea837a18c7d22c790daf2733eaffcc5450b1bd9 (patch)
tree9141b1083ea27c071e90118f60d8e6be34fee058 /lib/http.c
parentb8b8473b6d1c9fc3b70a4326f25cdde902f110cc (diff)
adjusted to the new dns cache function to hide more hostip internals
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/http.c b/lib/http.c
index a7961cba5..41b1ef7c4 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -398,17 +398,14 @@ CURLcode Curl_http_auth(struct connectdata *conn,
*availp |= CURLAUTH_DIGEST;
if(data->state.authwant == CURLAUTH_DIGEST) {
/* Digest authentication is activated */
- CURLdigest dig = CURLDIGEST_BAD;
-
- if(data->state.digest.nonce)
- infof(data, "Authentication problem. Ignoring this.\n");
- else
- dig = Curl_input_digest(conn, start);
+ CURLdigest dig = Curl_input_digest(conn, start);
if(CURLDIGEST_FINE == dig)
/* We act on it. Store our new url, which happens to be
the same one we already use! */
conn->newurl = strdup(data->change.url); /* clone string */
+ else
+ infof(data, "Authentication problem. Ignoring this.\n");
}
else
if(data->state.authwant & CURLAUTH_DIGEST) {