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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index b9ad29d..dd6ebda 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -324,9 +324,7 @@ process_arguments (int argc, char **argv)
324 /* TODO: this is_host check is probably unnecessary. */ 324 /* TODO: this is_host check is probably unnecessary. */
325 /* Better to confirm nslookup response matches */ 325 /* Better to confirm nslookup response matches */
326 if (is_host (optarg) == FALSE) { 326 if (is_host (optarg) == FALSE) {
327 printf (_("Invalid hostname/address\n\n")); 327 usage2 (_("Invalid hostname/address"), optarg);
328 print_usage ();
329 exit (STATE_UNKNOWN);
330 } 328 }
331 if (strlen (optarg) >= ADDRESS_LENGTH) 329 if (strlen (optarg) >= ADDRESS_LENGTH)
332 die (STATE_UNKNOWN, _("Input buffer overflow\n")); 330 die (STATE_UNKNOWN, _("Input buffer overflow\n"));