aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_tcp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index ce966c38..b024821e 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -277,10 +277,7 @@ main (int argc, char **argv)
memcpy(&status[len], buffer, i);
len += i;
- /* stop reading if user-forced or data-starved */
- if(i < sizeof(buffer) || (maxbytes && len >= maxbytes))
- break;
-
+ /* stop reading if user-forced */
if (maxbytes && len >= maxbytes)
break;
}