aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/http_ntlm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index bb17f371b..763cb96cb 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -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: