diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-12-19 19:29:57 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-12-19 19:29:57 +0000 |
commit | 198b425de624e8d67b537fd559d2c6cbd40d12ee (patch) | |
tree | 8413ee4418bee93e52a7e42ce022404fab6edf7c /plugins | |
parent | 202a5e4df9ca5f5dc3e4964a6aa02dc56cb9f044 (diff) | |
download | monitoring-plugins-198b425de624e8d67b537fd559d2c6cbd40d12ee.tar.gz |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_tcp.c | 4 |
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) | |||
142 | asprintf (&PROGNAME, "check_pop"); | 142 | asprintf (&PROGNAME, "check_pop"); |
143 | asprintf (&SERVICE, "POP"); | 143 | asprintf (&SERVICE, "POP"); |
144 | SEND = NULL; | 144 | SEND = NULL; |
145 | asprintf (&EXPECT, "110"); | 145 | asprintf (&EXPECT, "+OK"); |
146 | asprintf (&QUIT, "QUIT\r\n"); | 146 | asprintf (&QUIT, "QUIT\r\n"); |
147 | PROTOCOL = TCP_PROTOCOL; | 147 | PROTOCOL = TCP_PROTOCOL; |
148 | PORT = 110; | 148 | PORT = 110; |
@@ -205,7 +205,7 @@ main (int argc, char **argv) | |||
205 | 205 | ||
206 | /* use default expect if none listed in process_arguments() */ | 206 | /* use default expect if none listed in process_arguments() */ |
207 | if (EXPECT && server_expect_count == 0) { | 207 | if (EXPECT && server_expect_count == 0) { |
208 | server_expect = malloc (1); | 208 | server_expect = malloc (++server_expect_count); |
209 | server_expect[server_expect_count - 1] = EXPECT; | 209 | server_expect[server_expect_count - 1] = EXPECT; |
210 | } | 210 | } |
211 | 211 | ||