summaryrefslogtreecommitdiffstats
path: root/plugins/check_udp.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-03-07 06:43:50 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-03-07 06:43:50 (GMT)
commit266ca0944bfb0e1de865dab85a9b7e58f2f3af37 (patch)
tree3242b63e7073844c99e4ea96c5c1af4a116a2093 /plugins/check_udp.c
parent9fb966be55d832ec0324d4f6cd35fd230a9a907b (diff)
downloadmonitoring-plugins-266ca0944bfb0e1de865dab85a9b7e58f2f3af37.tar.gz
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
Diffstat (limited to 'plugins/check_udp.c')
-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 4074d94..4ae9c10 100644
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
@@ -220,9 +220,9 @@ process_arguments (int argc, char **argv)
220 usage ("Invalid host name/address\n"); 220 usage ("Invalid host name/address\n");
221 server_address = argv[c++]; 221 server_address = argv[c++];
222 } 222 }
223 else { 223
224 if (server_address == NULL)
224 usage ("Host name was not supplied\n"); 225 usage ("Host name was not supplied\n");
225 }
226 226
227 return c; 227 return c;
228} 228}