--- ../../curl-7.11.1-20040215/lib/http.c	Tue Feb 10 03:00:03 2004
+++ http.c	Mon Feb 16 02:07:58 2004
@@ -386,7 +386,10 @@
         if(CURLNTLM_BAD != ntlm)
           conn->newurl = strdup(data->change.url); /* clone string */
         else
+        {
           infof(data, "Authentication problem. Ignoring this.\n");
+          return CURLE_BAD_PASSWORD_ENTERED;
+        }
       }
       else
         if(data->state.authwant & CURLAUTH_NTLM)
@@ -401,7 +404,10 @@
           CURLdigest dig = CURLDIGEST_BAD;
 
           if(data->state.digest.nonce)
+          {
             infof(data, "Authentication problem. Ignoring this.\n");
+ 		 return CURLE_BAD_PASSWORD_ENTERED;
+          }
           else
             dig = Curl_input_digest(conn, start);
           
@@ -430,6 +436,7 @@
              valid. */
           data->state.authavail = CURLAUTH_NONE;
           infof(data, "Authentication problem. Ignoring this.\n");
+            return CURLE_BAD_PASSWORD_ENTERED;
         }
         else if(data->state.authwant & CURLAUTH_BASIC) {
           data->state.authavail |= CURLAUTH_BASIC;

