1
0
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:
Daniel Stenberg 2019-07-21 13:21:13 +02:00
parent 3af0e76d1e
commit 23c99f60ba
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);