Check return of curl_easy_setop

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This commit is contained in:
Tudor Marcu
2016-09-06 14:30:14 -07:00
parent 72ec546aac
commit 08757e9dbd
+4 -1
View File
@@ -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);