diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_operate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 14fffda36..6b2d89ffb 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1110,7 +1110,9 @@ static CURLcode create_transfers(struct GlobalConfig *global, /* avoid having this setopt added to the --libcurl source output */ - curl_easy_setopt(curl, CURLOPT_SHARE, share); + result = curl_easy_setopt(curl, CURLOPT_SHARE, share); + if(result) + goto show_error; if(!config->tcp_nodelay) my_setopt(curl, CURLOPT_TCP_NODELAY, 0L); |