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.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;
}