mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
no user or password set, bail out
This commit is contained in:
parent
f2057eb744
commit
df760a0a4b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user