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

This commit is contained in:
Daniel Stenberg 2003-10-17 09:29:06 +00:00
parent d70550f949
commit d42c6b7e78
1 changed files with 6 additions and 3 deletions

View 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: