logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

nagiosplug/plugins sslutils.c,1.4,1.5: msg#00001

Subject: nagiosplug/plugins sslutils.c,1.4,1.5
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8894

Modified Files:
        sslutils.c 
Log Message:
Save an entire CPU cycle if c points to NULL already.

Index: sslutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/sslutils.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sslutils.c  1 Jun 2007 16:42:07 -0000       1.4
+++ sslutils.c  1 Jun 2007 17:06:33 -0000       1.5
@@ -70,8 +70,10 @@
                if(s){
                                SSL_shutdown (s);
                                SSL_free (s);
-                               if(c) SSL_CTX_free (c);
-                               c=NULL;
+                               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>