diff --git a/plugins/netutils.c b/plugins/netutils.c
index db64ef09b230dcf1a106e6ec3eff6a34b1c5b5da..082452768642e7a7bb7673af9130dddaec8801be 100644 (file)
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
return (FALSE);
}
+void
+host_or_die(const char *str)
+{
+ if(!str || (!is_addr(str) && !is_hostname(str)))
+ usage_va(_("Invalid hostname/address - %s"), str);
+}
+
int
is_addr (const char *address)
{