[Nagiosplug-checkins] CVS: nagiosplug/plugins check_tcp.c,1.13.2.2,1.13.2.3

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Jun 2 07:47:18 CEST 2003


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

Modified Files:
      Tag: r1_3_0
	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.13.2.2
retrieving revision 1.13.2.3
diff -C2 -r1.13.2.2 -r1.13.2.3
*** check_tcp.c	1 Jun 2003 05:38:33 -0000	1.13.2.2
--- check_tcp.c	2 Jun 2003 14:46:48 -0000	1.13.2.3
***************
*** 262,266 ****
  			if (buffer[i-2] == '\r' && buffer[i-1] == '\n')
  				break;
! 			if (maxbytes>0 && strlen(status)>maxbytes)
  				break;
  		}
--- 262,266 ----
  			if (buffer[i-2] == '\r' && buffer[i-1] == '\n')
  				break;
! 			if (maxbytes>0 && strlen(status)>=maxbytes)
  				break;
  		}





More information about the Commits mailing list