aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_udp.c
diff options
context:
space:
mode:
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 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;
}