aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-17 09:29:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-17 09:29:06 +0000
commitd42c6b7e78a30c7405c4304864f5352c5eb7eea6 (patch)
tree2688c15652dbe57f7e3898626fbc61caed5bc83d
parentd70550f94922bf1935a21d97b8a23f34d15d8bd7 (diff)
make no user or no password just mean blank fields, not aborted operation
-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: