From: Marcel Raad Date: Wed, 10 Apr 2024 08:49:12 +0000 (+0200) Subject: http_negotiate: fix `CURL_DISABLE_PROXY` build X-Git-Tag: curl-8_8_0~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e6db87ac6782722bc00a1bd46480b73cb7baf8;p=thirdparty%2Fcurl.git http_negotiate: fix `CURL_DISABLE_PROXY` build `proxyuserpwd` was removed from `dynamically_allocated_data` in commit f46385d36df. Closes https://github.com/curl/curl/pull/13334 --- diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index a32d352f2d..4cbe2df42a 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);