diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-02 14:46:48 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-02 14:46:48 (GMT) |
commit | a056942d490cd1aff857d6db5f0014607b78d8ad (patch) | |
tree | 928ca3bf8aecc9198fdf3142128f93f686fce953 | |
parent | e1cef8404234c0222b3b4d6bb974305ee739a10b (diff) | |
download | monitoring-plugins-a056942d490cd1aff857d6db5f0014607b78d8ad.tar.gz |
finish recv() loop when stream GT or EQ maxbytes (was GT)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@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 13c34f9..f4fe5f4 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -297,7 +297,7 @@ main (int argc, char **argv) | |||
297 | asprintf (&status, "%s%s", status, buffer); | 297 | asprintf (&status, "%s%s", status, buffer); |
298 | if (buffer[i-2] == '\r' && buffer[i-1] == '\n') | 298 | if (buffer[i-2] == '\r' && buffer[i-1] == '\n') |
299 | break; | 299 | break; |
300 | if (maxbytes>0 && strlen(status)>maxbytes) | 300 | if (maxbytes>0 && strlen(status)>=maxbytes) |
301 | break; | 301 | break; |
302 | } | 302 | } |
303 | 303 | ||