[Nagiosplug-checkins] nagiosplug/plugins check_tcp.c,1.71,1.72
M. Sean Finney
seanius at users.sourceforge.net
Sun Oct 30 10:06:11 CET 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16983
Modified Files:
check_tcp.c
Log Message:
another fix from alex: check for '/' in the server_address before
trying to resolve it via is_host().
Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- check_tcp.c 30 Oct 2005 10:25:26 -0000 1.71
+++ check_tcp.c 30 Oct 2005 18:05:19 -0000 1.72
@@ -550,7 +550,7 @@
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;
More information about the Commits
mailing list