From 266ca0944bfb0e1de865dab85a9b7e58f2f3af37 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 7 Mar 2003 06:43:50 +0000 Subject: fix for -H invocation of hostname git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@372 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_udp.c b/plugins/check_udp.c index 4074d94..4ae9c10 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; } -- cgit v0.10-9-g596f