diff options
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 39023f95..7b18270f 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -331,9 +331,7 @@ process_arguments (int argc, char **argv) | |||
331 | case 'r': /* reverse server name */ | 331 | case 'r': /* reverse server name */ |
332 | /* TODO: Is this is_host necessary? */ | 332 | /* TODO: Is this is_host necessary? */ |
333 | if (is_host (optarg) == FALSE) { | 333 | if (is_host (optarg) == FALSE) { |
334 | printf (_("Invalid host name/address\n\n")); | 334 | usage2 (_("Invalid host name/address"), optarg); |
335 | print_usage (); | ||
336 | exit (STATE_UNKNOWN); | ||
337 | } | 335 | } |
338 | if (strlen (optarg) >= ADDRESS_LENGTH) | 336 | if (strlen (optarg) >= ADDRESS_LENGTH) |
339 | die (STATE_UNKNOWN, _("Input buffer overflow\n")); | 337 | die (STATE_UNKNOWN, _("Input buffer overflow\n")); |
@@ -391,8 +389,8 @@ print_help (void) | |||
391 | { | 389 | { |
392 | print_revision (progname, revision); | 390 | print_revision (progname, revision); |
393 | 391 | ||
394 | printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n")); | 392 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); |
395 | printf (_(COPYRIGHT), copyright, email); | 393 | printf (COPYRIGHT, copyright, email); |
396 | 394 | ||
397 | print_usage (); | 395 | print_usage (); |
398 | 396 | ||