projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
openvpn plugin: Fix "Dead assignment" warning.
[collectd.git]
/
src
/
ascent.c
diff --git
a/src/ascent.c
b/src/ascent.c
index
3a7c393
..
94a3938
100644
(file)
--- 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_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);
if ((verify_peer == NULL) || IS_TRUE (verify_peer))
curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 1L);
@@
-596,7
+597,7
@@
static int ascent_read (void) /* {{{ */
}
ascent_buffer_fill = 0;
}
ascent_buffer_fill = 0;
- if (curl_easy_perform (curl) !=
0
)
+ if (curl_easy_perform (curl) !=
CURLE_OK
)
{
ERROR ("ascent plugin: curl_easy_perform failed: %s",
ascent_curl_error);
{
ERROR ("ascent plugin: curl_easy_perform failed: %s",
ascent_curl_error);