summaryrefslogtreecommitdiffstats
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2020-12-09 06:38:24 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-09 16:45:09 (GMT)
commit5aacc593a961fe9ee1427c03d18fba8947a9e33d (patch)
tree1eb7234820ce18ece5ae773015217f8135c9c08e /lib/getinfo.c
parent7ceb56989f8ab3a4e1b1f2c48c9a0f382b85ec04 (diff)
downloadCMake-5aacc593a961fe9ee1427c03d18fba8947a9e33d.zip
CMake-5aacc593a961fe9ee1427c03d18fba8947a9e33d.tar.gz
CMake-5aacc593a961fe9ee1427c03d18fba8947a9e33d.tar.bz2
curl 2020-12-09 (e0528597)
Code extracted from: https://github.com/curl/curl.git at commit e052859759b34d0e05ce0f17244873e5cd7b457b (curl-7_74_0).
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 82691dc..fd8f4e8 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -9,7 +9,7 @@
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
- * are also available at https://curl.haxx.se/docs/copyright.html.
+ * are also available at https://curl.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
@@ -269,6 +269,9 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info,
/* Return the local port of the most recent (primary) connection */
*param_longp = data->info.conn_local_port;
break;
+ case CURLINFO_PROXY_ERROR:
+ *param_longp = (long)data->info.pxcode;
+ break;
case CURLINFO_CONDITION_UNMET:
if(data->info.httpcode == 304)
*param_longp = 1L;