*** cgi/getcgi.c	2006-05-12 17:18:52.000000000 -0500
--- ../../nagios-releases/nagios-2.3/cgi/getcgi.c	2006-04-12 14:17:23.000000000 -0500
***************
*** 2,8 ****
   *
   * GETCGI.C -  Nagios CGI Input Routines
   *
!  * Last Modified: 05-12-2006
   *
   *****************************************/
  
--- 2,8 ----
   *
   * GETCGI.C -  Nagios CGI Input Routines
   *
!  * Last Modified: 04-12-2006
   *
   *****************************************/
  
***************
*** 169,175 ****
  			printf("getcgivars(): No Content-Length was sent with the POST request.\n") ;
  			exit(1);
  		        }
! 		if(content_length<0 || content_length>=(INT_MAX-1))
  			content_length=0;
  		if(!(cgiinput=(char *)malloc(content_length+1))){
  			printf("getcgivars(): Could not allocate memory for CGI input.\n");
--- 169,175 ----
  			printf("getcgivars(): No Content-Length was sent with the POST request.\n") ;
  			exit(1);
  		        }
! 		if(content_length<0)
  			content_length=0;
  		if(!(cgiinput=(char *)malloc(content_length+1))){
  			printf("getcgivars(): Could not allocate memory for CGI input.\n");
