Commit df760a0a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

no user or password set, bail out

parent f2057eb7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -312,6 +312,10 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
    ntlm = &conn->ntlm;
  }

  if(!userp || !passwdp)
    /* no user, no auth */
    return CURLE_OK;
  
  switch(ntlm->state) {
  case NTLMSTATE_TYPE1:
  default: /* for the weird cases we (re)start here */