projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl_xml: fix 3 small memory leaks
[collectd.git]
/
src
/
nginx.c
diff --git
a/src/nginx.c
b/src/nginx.c
index
f1f3f99
..
a0fa74f
100644
(file)
--- a/
src/nginx.c
+++ b/
src/nginx.c
@@
-143,6
+143,7
@@
static int init (void)
}
curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L);
}
curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L);
+ curl_easy_setopt (curl, CURLOPT_MAXREDIRS, 50L);
if ((verify_peer == NULL) || IS_TRUE (verify_peer))
{
if ((verify_peer == NULL) || IS_TRUE (verify_peer))
{
@@
-213,7
+214,7
@@
static int nginx_read (void)
return (-1);
nginx_buffer_len = 0;
return (-1);
nginx_buffer_len = 0;
- if (curl_easy_perform (curl) !=
0
)
+ if (curl_easy_perform (curl) !=
CURLE_OK
)
{
WARNING ("nginx plugin: curl_easy_perform failed: %s", nginx_curl_error);
return (-1);
{
WARNING ("nginx plugin: curl_easy_perform failed: %s", nginx_curl_error);
return (-1);