aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r--plugins/check_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 13c34f97..f4fe5f40 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -297,7 +297,7 @@ main (int argc, char **argv)
asprintf (&status, "%s%s", status, buffer);
if (buffer[i-2] == '\r' && buffer[i-1] == '\n')
break;
- if (maxbytes>0 && strlen(status)>maxbytes)
+ if (maxbytes>0 && strlen(status)>=maxbytes)
break;
}