]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http_negotiate: fix `CURL_DISABLE_PROXY` build
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 10 Apr 2024 08:49:12 +0000 (10:49 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 10 Apr 2024 12:56:05 +0000 (14:56 +0200)
`proxyuserpwd` was removed from `dynamically_allocated_data` in commit
f46385d36df.

Closes https://github.com/curl/curl/pull/13334

lib/http_negotiate.c

index a32d352f2d59ea8be851ac42e3667afff9aafc7f..4cbe2df42ad3b9a1204fba3fc4dbaf62fbdf05ee 100644 (file)
@@ -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);