aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-03-07 06:43:50 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-03-07 06:43:50 +0000
commit7f01b73f181d63350cd9634ff9ef022c1edb16a8 (patch)
tree7ff550dcafa049b5b23b3a706df3dbf9a8d13c67 /plugins
parent2e641a086800444de7f80ed6cb973290d6b84ec0 (diff)
downloadmonitoring-plugins-7f01b73f181d63350cd9634ff9ef022c1edb16a8.tar.gz
fix for -H invocation of hostname
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@372 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index 4074d948..4ae9c103 100644
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
@@ -220,9 +220,9 @@ process_arguments (int argc, char **argv)
usage ("Invalid host name/address\n");
server_address = argv[c++];
}
- else {
+
+ if (server_address == NULL)
usage ("Host name was not supplied\n");
- }
return c;
}