From: Holger Weiss Date: Fri, 1 Jun 2007 16:42:07 +0000 (+0000) Subject: Set the pointers to the SSL and SSL_CTX objects back to NULL after X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bad9e04c542d0cf07a14b843f0d38f78c2b0b03c;p=nagiosplug.git 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). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1724 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins/sslutils.c b/plugins/sslutils.c index 09d58b0..cf3c403 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c @@ -71,6 +71,8 @@ void np_net_ssl_cleanup (){ SSL_shutdown (s); SSL_free (s); if(c) SSL_CTX_free (c); + c=NULL; + s=NULL; } }