mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
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
This commit is contained in:
parent
e082e8565f
commit
27675e4e6b
1 changed files with 3 additions and 3 deletions
|
|
@ -177,7 +177,7 @@ main (int argc, char **argv)
|
|||
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 @@ process_arguments (int argc, char **argv)
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue