aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-09-04 13:31:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-09-04 13:31:49 +0000
commitdf760a0a4b393cef3265d7d30c67a001de152764 (patch)
tree3f2d28bbe05cddba1b6e0a25e4027e0b9d81864e
parentf2057eb7441d2b07841fc23bf8682ad991268fcb (diff)
no user or password set, bail out
-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: