summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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