summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 0316e407..54ce7d16 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -126,7 +126,7 @@ main (int argc, char **argv)
126 if (verbose) 126 if (verbose)
127 puts(chld_out.line[i]); 127 puts(chld_out.line[i]);
128 128
129 if (strstr (chld_out.line[i], ".in-addr.arpa")) { 129 if (strcasestr (chld_out.line[i], ".in-addr.arpa")) {
130 if ((temp_buffer = strstr (chld_out.line[i], "name = "))) 130 if ((temp_buffer = strstr (chld_out.line[i], "name = ")))
131 addresses[n_addresses++] = strdup (temp_buffer + 7); 131 addresses[n_addresses++] = strdup (temp_buffer + 7);
132 else { 132 else {
@@ -389,10 +389,10 @@ process_arguments (int argc, char **argv)
389 switch (c) { 389 switch (c) {
390 case 'h': /* help */ 390 case 'h': /* help */
391 print_help (); 391 print_help ();
392 exit (STATE_OK); 392 exit (STATE_UNKNOWN);
393 case 'V': /* version */ 393 case 'V': /* version */
394 print_revision (progname, NP_VERSION); 394 print_revision (progname, NP_VERSION);
395 exit (STATE_OK); 395 exit (STATE_UNKNOWN);
396 case 'v': /* version */ 396 case 'v': /* version */
397 verbose = TRUE; 397 verbose = TRUE;
398 break; 398 break;