summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 202a5e4)
raw | patch | inline | side by side (parent: 202a5e4)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 19 Dec 2002 19:29:57 +0000 (19:29 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 19 Dec 2002 19:29:57 +0000 (19:29 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@232 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_tcp.c | patch | blob | history |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 29a7ab57f5b840171efeb2ea53020e7cb8c94150..cbe859568a7b051cda21cf963a4848b4630fca9a 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
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;
/* 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;
}