[Nagiosplug-checkins] nagiosplug/plugins check_tcp.c,1.70,1.71
M. Sean Finney
seanius at users.sourceforge.net
Sun Oct 30 02:26:37 CEST 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25138
Modified Files:
check_tcp.c
Log Message:
fixes for some bugs found in my merging of the tcp socket patch
Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- check_tcp.c 25 Oct 2005 10:38:02 -0000 1.70
+++ check_tcp.c 30 Oct 2005 10:25:26 -0000 1.71
@@ -177,7 +177,7 @@
QUIT = "QUIT\r\n";
PORT = 119;
}
- else if (strncmp(SERVICE, "CLAMD", 5)) {
+ else if (!strncmp(SERVICE, "CLAMD", 5)) {
SEND = "PING";
EXPECT = "PONG";
QUIT = NULL;
@@ -550,8 +550,8 @@
if (server_address == NULL)
usage4 (_("You must provide a server address"));
- else if (is_host (optarg) == FALSE && optarg[0] != '/')
- usage2 (_("Invalid hostname, address, or socket"), optarg);
+ else if (is_host (server_address) == FALSE && server_address[0] != '/')
+ usage2 (_("Invalid hostname, address, or socket"), server_address);
return TRUE;
}
More information about the Commits
mailing list