diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-30 10:25:26 (GMT) |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-30 10:25:26 (GMT) |
commit | 27675e4e6b6c36a5c94bad1bdece3ebce3cbb46f (patch) | |
tree | d9f4e2ffa07c1124794fc6479ea0bf09dd11590c /plugins/check_tcp.c | |
parent | e082e8565f5f54916511f01eabfab1427503813d (diff) | |
download | monitoring-plugins-27675e4e6b6c36a5c94bad1bdece3ebce3cbb46f.tar.gz |
fixes for some bugs found in my merging of the tcp socket patch
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1264 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 3aef1e7..015ccd4 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -177,7 +177,7 @@ main (int argc, char **argv) | |||
177 | QUIT = "QUIT\r\n"; | 177 | QUIT = "QUIT\r\n"; |
178 | PORT = 119; | 178 | PORT = 119; |
179 | } | 179 | } |
180 | else if (strncmp(SERVICE, "CLAMD", 5)) { | 180 | else if (!strncmp(SERVICE, "CLAMD", 5)) { |
181 | SEND = "PING"; | 181 | SEND = "PING"; |
182 | EXPECT = "PONG"; | 182 | EXPECT = "PONG"; |
183 | QUIT = NULL; | 183 | QUIT = NULL; |
@@ -550,8 +550,8 @@ 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 (optarg) == FALSE && optarg[0] != '/') | 553 | else if (is_host (server_address) == FALSE && server_address[0] != '/') |
554 | usage2 (_("Invalid hostname, address, or socket"), optarg); | 554 | usage2 (_("Invalid hostname, address, or socket"), server_address); |
555 | 555 | ||
556 | return TRUE; | 556 | return TRUE; |
557 | } | 557 | } |