aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 29a7ab57..cbe85956 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -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;
}