summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 (GMT)
commitcaa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch)
tree118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_dns.c
parent16f53e0717b60660145388b0feb351628f606211 (diff)
downloadmonitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 19206c2..6bedfef 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -123,7 +123,7 @@ main (int argc, char **argv)
123 123
124 /* scan stdout */ 124 /* scan stdout */
125 for(i = 0; i < chld_out.lines; i++) { 125 for(i = 0; i < chld_out.lines; i++) {
126 if (addresses == NULL) 126 if (addresses == NULL)
127 addresses = malloc(sizeof(*addresses)*10); 127 addresses = malloc(sizeof(*addresses)*10);
128 else if (!(n_addresses % 10)) 128 else if (!(n_addresses % 10))
129 addresses = realloc(addresses,sizeof(*addresses) * (n_addresses + 10)); 129 addresses = realloc(addresses,sizeof(*addresses) * (n_addresses + 10));
@@ -289,7 +289,7 @@ error_scan (char *input_buffer)
289 strstr (input_buffer, ": REFUSED"))) 289 strstr (input_buffer, ": REFUSED")))
290 die (STATE_CRITICAL, _("Connection to DNS %s was refused\n"), dns_server); 290 die (STATE_CRITICAL, _("Connection to DNS %s was refused\n"), dns_server);
291 291
292 /* Query refused (usually by an ACL in the namserver) */ 292 /* Query refused (usually by an ACL in the namserver) */
293 else if (strstr (input_buffer, "Query refused")) 293 else if (strstr (input_buffer, "Query refused"))
294 die (STATE_CRITICAL, _("Query was refused by DNS server at %s\n"), dns_server); 294 die (STATE_CRITICAL, _("Query was refused by DNS server at %s\n"), dns_server);
295 295