From: Daniel Stenberg Date: Thu, 4 Sep 2003 13:31:49 +0000 (+0000) Subject: no user or password set, bail out X-Git-Tag: curl-7_10_8~233 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df760a0a4b393cef3265d7d30c67a001de152764;p=thirdparty%2Fcurl.git no user or password set, bail out --- diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index bb17f371b3..763cb96cb9 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: