diff options
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index fce597884..8d59653c5 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -744,11 +744,13 @@ CURLcode Curl_readwrite(struct connectdata *conn, (401 == k->httpcode) && data->set.httpntlm /* NTLM authentication is activated */) { - CURLntlm ntlm; - ntlm = Curl_input_ntlm(conn, - k->p+strlen("WWW-Authenticate:")); + CURLntlm ntlm = + Curl_input_ntlm(conn, k->p+strlen("WWW-Authenticate:")); - conn->newurl = strdup(data->change.url); /* clone string */ + if(CURLNTLM_BAD != ntlm) + conn->newurl = strdup(data->change.url); /* clone string */ + else + infof(data, "Authentication problem. Ignoring this.\n"); } #endif else if(checkprefix("WWW-Authenticate:", k->p) && @@ -758,7 +760,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, CURLdigest dig = CURLDIGEST_BAD; if(data->state.digest.nonce) - infof(data, "Authentication problem. Ignoring this."); + infof(data, "Authentication problem. Ignoring this.\n"); else dig = Curl_input_digest(conn, k->p+strlen("WWW-Authenticate:")); |