X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fascent.c;h=23783862d53a685c8acb67fbca3ac0ebbc1ed070;hb=a7aec0ae6160be6aa6b1b2b06574bb0dd47497f2;hp=3a7c393963b8368d605fa0497e82f1feffd2c837;hpb=b0c32ea6b670877e573913139f05d5c110e50861;p=collectd.git diff --git a/src/ascent.c b/src/ascent.c index 3a7c3939..23783862 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -562,6 +562,7 @@ static int ascent_init (void) /* {{{ */ curl_easy_setopt (curl, CURLOPT_URL, url); curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt (curl, CURLOPT_MAXREDIRS, 50L); if ((verify_peer == NULL) || IS_TRUE (verify_peer)) curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 1L);