Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/games/alienarena/files/patch-client_cl_updates.c
18160 views
1
--- client/cl_updates.c 2023-11-12 22:09:46.989672000 -0500
2
+++ client/cl_updates.c 2023-11-12 22:10:10.652785000 -0500
3
@@ -250,14 +250,14 @@
4
easyhandle = curl_easy_init();
5
6
// Set Http version to 1.1, somehow this seems to be needed for the multi-download
7
- if (curl_easy_setopt(easyhandle, CURLOPT_HTTP_VERSION, (long) CURL_HTTP_VERSION_1_1) != CURLE_OK) return false;
8
+ if (curl_easy_setopt(easyhandle, CURLOPT_HTTP_VERSION, (long) CURL_HTTP_VERSION_1_1) != CURLE_OK) return;
9
10
// Follow redirects to https - but this doesn't seem to be working
11
- if (curl_easy_setopt(easyhandle, CURLOPT_FOLLOWLOCATION, 1L) != CURLE_OK) return false;
12
- if (curl_easy_setopt(easyhandle, CURLOPT_MAXREDIRS, 3L) != CURLE_OK) return false;
13
+ if (curl_easy_setopt(easyhandle, CURLOPT_FOLLOWLOCATION, 1L) != CURLE_OK) return;
14
+ if (curl_easy_setopt(easyhandle, CURLOPT_MAXREDIRS, 3L) != CURLE_OK) return;
15
16
// Don't verify that the host matches the certificate
17
- if (curl_easy_setopt(easyhandle, CURLOPT_SSL_VERIFYHOST, 0L) != CURLE_OK) return false;
18
+ if (curl_easy_setopt(easyhandle, CURLOPT_SSL_VERIFYHOST, 0L) != CURLE_OK) return;
19
20
Com_sprintf(url, sizeof(url), "%s", cl_latest_game_version_url->string);
21
22
23