mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
curl:create_transfers check return code from curl_easy_setopt
From commit b8894085
Pointed out by Coverity CID 1451703
Closes #4134
This commit is contained in:
parent
3af0e76d1e
commit
23c99f60ba
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user