summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e082e85)
raw | patch | inline | side by side (parent: e082e85)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Sun, 30 Oct 2005 10:25:26 +0000 (10:25 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Sun, 30 Oct 2005 10:25:26 +0000 (10:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1264 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_tcp.c | patch | blob | history |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 3aef1e7e303efeda1d2ac138b7c5e5e50a2be4cc..015ccd46672bbe782e72754d828f21b9c787682a 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
QUIT = "QUIT\r\n";
PORT = 119;
}
- else if (strncmp(SERVICE, "CLAMD", 5)) {
+ else if (!strncmp(SERVICE, "CLAMD", 5)) {
SEND = "PING";
EXPECT = "PONG";
QUIT = NULL;
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;
}