From 3d210490d5a433bebf86ae0d7bc656871e9aeb75 Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Sun, 30 Oct 2005 18:05:19 +0000 Subject: 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 --- plugins/check_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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) if (server_address == NULL) usage4 (_("You must provide a server address")); - else if (is_host (server_address) == FALSE && server_address[0] != '/') + else if (server_address[0] != '/' && is_host (server_address) == FALSE) usage2 (_("Invalid hostname, address, or socket"), server_address); return TRUE; -- cgit v1.2.3-74-g34f1