[Nagiosplug-checkins] nagiosplug/plugins sslutils.c,1.3,1.4

Holger Weiss hweiss at users.sourceforge.net
Fri Jun 1 18:42:09 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25419

Modified Files:
	sslutils.c 
Log Message:
Set the pointers to the SSL and SSL_CTX objects back to NULL after
freeing them in np_net_ssl_cleanup().  This fixes a check_http segfault
if an SSL site redirects to a non-SSL one (reported by Aravind Gottipati
via IRC).


Index: sslutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/sslutils.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- sslutils.c	18 Jun 2006 19:36:48 -0000	1.3
+++ sslutils.c	1 Jun 2007 16:42:07 -0000	1.4
@@ -71,6 +71,8 @@
 				SSL_shutdown (s);
 				SSL_free (s);
 				if(c) SSL_CTX_free (c);
+				c=NULL;
+				s=NULL;
 		}
 }
 





More information about the Commits mailing list