[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.19,1.20

Karl DeBisschop kdebisschop at users.sourceforge.net
Tue Feb 4 21:58:02 CET 2003


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

Modified Files:
	check_http.c 
Log Message:
fix segfault due to bad asprintf invocation

Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** check_http.c	29 Jan 2003 05:55:50 -0000	1.19
--- check_http.c	5 Feb 2003 05:57:27 -0000	1.20
***************
*** 921,925 ****
  	SSL_METHOD *meth;
  
! 	asprintf (randbuff, "%s", "qwertyuiopasdfghjkl");
  	RAND_seed (randbuff, strlen (randbuff));
  	/* Initialize SSL context */
--- 921,925 ----
  	SSL_METHOD *meth;
  
! 	asprintf (&randbuff, "%s", "qwertyuiopasdfghjkl");
  	RAND_seed (randbuff, strlen (randbuff));
  	/* Initialize SSL context */





More information about the Commits mailing list