]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Made --proxy-ntlm check if the underlying library actually supports NTLM
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 Apr 2004 08:44:27 +0000 (08:44 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Apr 2004 08:44:27 +0000 (08:44 +0000)
src/main.c

index 95cb5f92e30b37d84dfe5e199ec1185ff23ddbd9..727c8c2c2279a1754dc5be6a20117814119361cc 100644 (file)
@@ -1389,7 +1389,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
         break;
 
       case 't': /* --proxy-ntlm */
-        config->proxyntlm ^= TRUE;
+        if(curlinfo->features & CURL_VERSION_NTLM)
+          config->proxyntlm ^= TRUE;
+        else
+          return PARAM_LIBCURL_DOESNT_SUPPORT;        
         break;
 
       case 'u': /* --crlf */