diff options
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 19206c2c..6bedfefc 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 | ||