From d42c6b7e78a30c7405c4304864f5352c5eb7eea6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 17 Oct 2003 09:29:06 +0000 Subject: [PATCH] make no user or no password just mean blank fields, not aborted operation --- lib/http_ntlm.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index 981bc84a5..902af59bc 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -315,9 +315,12 @@ CURLcode Curl_output_ntlm(struct connectdata *conn, ntlm = &conn->ntlm; } - if(!userp || !passwdp) - /* no user, no auth */ - return CURLE_OK; + /* not set means empty */ + if(!userp) + userp=""; + + if(!passwdp) + passwdp=""; switch(ntlm->state) { case NTLMSTATE_TYPE1: