mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-28 21:34:47 -04:00
server expect not getting set, expect is +OK for POP
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@232 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
202a5e4df9
commit
198b425de6
1 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ main (int argc, char **argv)
|
|||
asprintf (&PROGNAME, "check_pop");
|
||||
asprintf (&SERVICE, "POP");
|
||||
SEND = NULL;
|
||||
asprintf (&EXPECT, "110");
|
||||
asprintf (&EXPECT, "+OK");
|
||||
asprintf (&QUIT, "QUIT\r\n");
|
||||
PROTOCOL = TCP_PROTOCOL;
|
||||
PORT = 110;
|
||||
|
|
@ -205,7 +205,7 @@ main (int argc, char **argv)
|
|||
|
||||
/* use default expect if none listed in process_arguments() */
|
||||
if (EXPECT && server_expect_count == 0) {
|
||||
server_expect = malloc (1);
|
||||
server_expect = malloc (++server_expect_count);
|
||||
server_expect[server_expect_count - 1] = EXPECT;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue