[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.54,1.55

Ton Voon tonvoon at users.sourceforge.net
Thu Dec 11 02:01:01 CET 2003


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

Modified Files:
	check_http.c 
Log Message:
Relative redirects not followed correctly (854131 - John Sivak)


Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -r1.54 -r1.55
*** check_http.c	15 Sep 2003 05:03:47 -0000	1.54
--- check_http.c	11 Dec 2003 10:00:07 -0000	1.55
***************
*** 839,845 ****
  			/* relative url */
  			if ((url[0] != '/')) {
! 				if ((x = strrchr(url, '/')))
  					*x = '\0';
! 				asprintf (&server_url, "%s/%s", server_url, url);
  			}
  			i = server_port;
--- 839,845 ----
  			/* relative url */
  			if ((url[0] != '/')) {
! 				if ((x = strrchr(server_url, '/')))
  					*x = '\0';
! 				asprintf (&url, "%s/%s", server_url, url);
  			}
  			i = server_port;





More information about the Commits mailing list