no user or password set, bail out

This commit is contained in:
Daniel Stenberg 2003-09-04 13:31:49 +00:00
parent f2057eb744
commit df760a0a4b

View File

@ -311,6 +311,10 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
passwdp = conn->passwd;
ntlm = &conn->ntlm;
}
if(!userp || !passwdp)
/* no user, no auth */
return CURLE_OK;
switch(ntlm->state) {
case NTLMSTATE_TYPE1: