diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_tcp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index ce966c3..b024821 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 | } |