diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-02 14:46:48 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-02 14:46:48 +0000 |
commit | 021329226a10608843552b3ebbc9d6cdd7efc329 (patch) | |
tree | 0bc742cf6cd60531ace5ee719cd83146df72bd35 | |
parent | 9d9a79f9b9d015d1fed85289b80813fc2b76c8df (diff) | |
download | monitoring-plugins-021329226a10608843552b3ebbc9d6cdd7efc329.tar.gz |
finish recv() loop when stream GT or EQ maxbytes (was GT)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@531 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 8a4b70dd..c6acca76 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -261,7 +261,7 @@ main (int argc, char **argv) | |||
261 | asprintf (&status, "%s%s", status, buffer); | 261 | asprintf (&status, "%s%s", status, buffer); |
262 | if (buffer[i-2] == '\r' && buffer[i-1] == '\n') | 262 | if (buffer[i-2] == '\r' && buffer[i-1] == '\n') |
263 | break; | 263 | break; |
264 | if (maxbytes>0 && strlen(status)>maxbytes) | 264 | if (maxbytes>0 && strlen(status)>=maxbytes) |
265 | break; | 265 | break; |
266 | } | 266 | } |
267 | 267 | ||