summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-07-04 16:43:42 (GMT)
committerAndreas Baumann <mail@andreasbaumann.cc>2021-07-04 16:43:42 (GMT)
commit6e696643a5701ddd18945593743286b35b5944cb (patch)
tree9af021cde53d554fc822af078694ca11824ce4ea /plugins
parent0b6838ffcaf372df419059771dd42f1bd69644c0 (diff)
downloadmonitoring-plugins-6e696643a5701ddd18945593743286b35b5944cb.tar.gz
check_curl: changed to STATE_CRITICAL for infinite loops (-ffollow)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_curl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index daf64b0..ba08c36 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1106,8 +1106,8 @@ redir (curlhelp_write_curlbuf* header_buf)
1106 !strncmp(server_address, new_host, MAX_IPV4_HOSTLENGTH) && 1106 !strncmp(server_address, new_host, MAX_IPV4_HOSTLENGTH) &&
1107 (host_name && !strncmp(host_name, new_host, MAX_IPV4_HOSTLENGTH)) && 1107 (host_name && !strncmp(host_name, new_host, MAX_IPV4_HOSTLENGTH)) &&
1108 !strcmp(server_url, new_url)) 1108 !strcmp(server_url, new_url))
1109 die (STATE_WARNING, 1109 die (STATE_CRITICAL,
1110 _("HTTP WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"), 1110 _("HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n"),
1111 use_ssl ? "https" : "http", new_host, new_port, new_url, (display_html ? "</A>" : "")); 1111 use_ssl ? "https" : "http", new_host, new_port, new_url, (display_html ? "</A>" : ""));
1112 1112
1113 /* set new values for redirected request */ 1113 /* set new values for redirected request */