aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/http_ntlm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index 981bc84a5..902af59bc 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -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: