diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index a32d352f2..4cbe2df42 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -184,8 +184,10 @@ CURLcode Curl_output_negotiate(struct Curl_easy *data, base64); if(proxy) { +#ifndef CURL_DISABLE_PROXY Curl_safefree(data->state.aptr.proxyuserpwd); data->state.aptr.proxyuserpwd = userp; +#endif } else { Curl_safefree(data->state.aptr.userpwd);