mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-07 22:21:32 +00:00
Check return of curl_easy_setop
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This commit is contained in:
+4
-1
@@ -479,7 +479,10 @@ CURLcode swupd_curl_set_basic_options(CURL *curl, const char *url)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
|
||||
curl_ret = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
|
||||
if (curl_ret != CURLE_OK) {
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (update_server_port > 0) {
|
||||
curl_ret = curl_easy_setopt(curl, CURLOPT_PORT, update_server_port);
|
||||
|
||||
Reference in New Issue
Block a user