]> granicus.if.org Git - curl/commitdiff
make no user or no password just mean blank fields, not aborted operation
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Oct 2003 09:29:06 +0000 (09:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 Oct 2003 09:29:06 +0000 (09:29 +0000)
lib/http_ntlm.c

index 981bc84a513509101e6c54d610e5eaaf971af593..902af59bc08d483ae8657e860ba31bf5c96f65ca 100644 (file)
@@ -315,9 +315,12 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
     ntlm = &conn->ntlm;
   }
 
-  if(!userp || !passwdp)
-    /* no user, no auth */
-    return CURLE_OK;
+  /* not set means empty */
+  if(!userp)
+    userp="";
+
+  if(!passwdp)
+    passwdp="";
   
   switch(ntlm->state) {
   case NTLMSTATE_TYPE1: