[Nagiosplug-checkins] CVS: nagiosplug/plugins check_tcp.c,1.22,1.23

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Jun 2 07:44:11 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv31189/plugins

Modified Files:
	check_tcp.c 
Log Message:
finish recv() loop when stream GT or EQ maxbytes (was GT)

Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** check_tcp.c	1 Jun 2003 05:38:12 -0000	1.22
--- check_tcp.c	2 Jun 2003 14:43:36 -0000	1.23
***************
*** 298,302 ****
  			if (buffer[i-2] == '\r' && buffer[i-1] == '\n')
  				break;
! 			if (maxbytes>0 && strlen(status)>maxbytes)
  				break;
  		}
--- 298,302 ----
  			if (buffer[i-2] == '\r' && buffer[i-1] == '\n')
  				break;
! 			if (maxbytes>0 && strlen(status)>=maxbytes)
  				break;
  		}





More information about the Commits mailing list