Skip to content
Snippets Groups Projects
Commit d42c6b7e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make no user or no password just mean blank fields, not aborted operation

parent d70550f9
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment