logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

nagiosplug/plugins sslutils.c,1.3,1.4: msg#00000

Subject: nagiosplug/plugins sslutils.c,1.3,1.4
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;
                }
 }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


<Prev in Thread] Current Thread [Next in Thread>