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
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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: