summaryrefslogtreecommitdiffstats
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)
277 memcpy(&status[len], buffer, i); 277 memcpy(&status[len], buffer, i);
278 len += i; 278 len += i;
279 279
280 /* stop reading if user-forced or data-starved */ 280 /* stop reading if user-forced */
281 if(i < sizeof(buffer) || (maxbytes && len >= maxbytes))
282 break;
283
284 if (maxbytes && len >= maxbytes) 281 if (maxbytes && len >= maxbytes)
285 break; 282 break;
286 } 283 }