summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-10-30 18:05:19 +0000
committerM. Sean Finney <seanius@users.sourceforge.net>2005-10-30 18:05:19 +0000
commit3d210490d5a433bebf86ae0d7bc656871e9aeb75 (patch)
treebd411b8692251780cac53250e48fb1275521b646
parent27675e4e6b6c36a5c94bad1bdece3ebce3cbb46f (diff)
downloadmonitoring-plugins-3d210490d5a433bebf86ae0d7bc656871e9aeb75.tar.gz
another fix from alex: check for '/' in the server_address before
trying to resolve it via is_host(). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1265 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 015ccd46..2a77637c 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -550,7 +550,7 @@ process_arguments (int argc, char **argv)
550 550
551 if (server_address == NULL) 551 if (server_address == NULL)
552 usage4 (_("You must provide a server address")); 552 usage4 (_("You must provide a server address"));
553 else if (is_host (server_address) == FALSE && server_address[0] != '/') 553 else if (server_address[0] != '/' && is_host (server_address) == FALSE)
554 usage2 (_("Invalid hostname, address, or socket"), server_address); 554 usage2 (_("Invalid hostname, address, or socket"), server_address);
555 555
556 return TRUE; 556 return TRUE;