mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05: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…
x
Reference in New Issue
Block a user