]> granicus.if.org Git - curl/commitdiff
no user or password set, bail out
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Sep 2003 13:31:49 +0000 (13:31 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 4 Sep 2003 13:31:49 +0000 (13:31 +0000)
lib/http_ntlm.c

index bb17f371b37f10077799c734bdc194762c9619e9..763cb96cb982530f425fb741d6f6a9764597f889 100644 (file)
@@ -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: