Skip to content
Permalink
Browse files

curl: skip CURLOPT_PROXY_CAPATH for disabled-proxy builds

Closes #4061
  • Loading branch information...
Koen Dergent authored and bagder committed Jun 24, 2019
1 parent 1e97696 commit 92963d612b9c5ef32d63d26c72d6fff64930eba6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/tool_operate.c
@@ -1066,7 +1066,8 @@ static CURLcode operate_do(struct GlobalConfig *global,
}
/* For the time being if --proxy-capath is not set then we use the
--capath value for it, if any. See #1257 */
if(config->proxy_capath || config->capath) {
if((config->proxy_capath || config->capath) &&
!tool_setopt_skip(CURLOPT_PROXY_CAPATH)) {
result = res_setopt_str(curl, CURLOPT_PROXY_CAPATH,
(config->proxy_capath ?
config->proxy_capath :

0 comments on commit 92963d6

Please sign in to comment.
You can’t perform that action at this time.