From 021329226a10608843552b3ebbc9d6cdd7efc329 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Mon, 2 Jun 2003 14:46:48 +0000 Subject: finish recv() loop when stream GT or EQ maxbytes (was GT) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@531 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 8a4b70d..c6acca7 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -261,7 +261,7 @@ main (int argc, char **argv) asprintf (&status, "%s%s", status, buffer); if (buffer[i-2] == '\r' && buffer[i-1] == '\n') break; - if (maxbytes>0 && strlen(status)>maxbytes) + if (maxbytes>0 && strlen(status)>=maxbytes) break; } -- cgit v0.10-9-g596f