Skip to content
Snippets Groups Projects
Commit c5c7a8cf authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

Merge branch 'limit-http-redirs' into 'master'

set CURLOPT_MAXREDIRS to 30

See merge request !2630
parents 36398588 313f2d29
Branches
No related tags found
1 merge request!2630set CURLOPT_MAXREDIRS to 30
Pipeline #7795 passed
...@@ -277,6 +277,9 @@ HMS_connect (int proto, const char *format, ...) ...@@ -277,6 +277,9 @@ HMS_connect (int proto, const char *format, ...)
cc = curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value); cc = curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value);
if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf);
cc = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 30L);
if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf);
cc = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read); cc = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read);
if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment