[Nagiosplug-checkins] CVS: nagiosplug/plugins check_tcp.c,1.8,1.9
Karl DeBisschop
kdebisschop at users.sourceforge.net
Thu Dec 19 11:30:13 CET 2002
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv11995/plugins
Modified Files:
check_tcp.c
Log Message:
server expect not getting set, expect is +OK for POP
Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** check_tcp.c 25 Nov 2002 12:00:17 -0000 1.8
--- check_tcp.c 19 Dec 2002 19:29:57 -0000 1.9
***************
*** 143,147 ****
asprintf (&SERVICE, "POP");
SEND = NULL;
! asprintf (&EXPECT, "110");
asprintf (&QUIT, "QUIT\r\n");
PROTOCOL = TCP_PROTOCOL;
--- 143,147 ----
asprintf (&SERVICE, "POP");
SEND = NULL;
! asprintf (&EXPECT, "+OK");
asprintf (&QUIT, "QUIT\r\n");
PROTOCOL = TCP_PROTOCOL;
***************
*** 206,210 ****
/* use default expect if none listed in process_arguments() */
if (EXPECT && server_expect_count == 0) {
! server_expect = malloc (1);
server_expect[server_expect_count - 1] = EXPECT;
}
--- 206,210 ----
/* use default expect if none listed in process_arguments() */
if (EXPECT && server_expect_count == 0) {
! server_expect = malloc (++server_expect_count);
server_expect[server_expect_count - 1] = EXPECT;
}
More information about the Commits
mailing list