*** check_tcp.c	Mon Nov 25 07:00:17 2002
--- new_check_tcp.c	Wed Dec 18 17:53:56 2002
***************
*** 142,148 ****
  		asprintf (&PROGNAME, "check_pop");
  		asprintf (&SERVICE, "POP");
  		SEND = NULL;
! 		asprintf (&EXPECT, "110");
  		asprintf (&QUIT, "QUIT\r\n");
  		PROTOCOL = TCP_PROTOCOL;
  		PORT = 110;
--- 142,148 ----
  		asprintf (&PROGNAME, "check_pop");
  		asprintf (&SERVICE, "POP");
  		SEND = NULL;
! 		asprintf (&EXPECT, "+OK");
  		asprintf (&QUIT, "QUIT\r\n");
  		PROTOCOL = TCP_PROTOCOL;
  		PORT = 110;
***************
*** 171,177 ****
  		asprintf (&PROGNAME, "check_spop");
  		asprintf (&SERVICE, "SPOP");
  		SEND=NULL;
! 		asprintf (&EXPECT, "110");
  		asprintf (&QUIT, "QUIT\r\n");
  		PROTOCOL=TCP_PROTOCOL;
  		use_ssl=TRUE;
--- 171,177 ----
  		asprintf (&PROGNAME, "check_spop");
  		asprintf (&SERVICE, "SPOP");
  		SEND=NULL;
! 		asprintf (&EXPECT, "+OK");
  		asprintf (&QUIT, "QUIT\r\n");
  		PROTOCOL=TCP_PROTOCOL;
  		use_ssl=TRUE;
***************
*** 205,211 ****
  
  	/* 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;
  	}
  
--- 205,211 ----
  
  	/* 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;
  	}
  
