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

Holger Weiss hweiss at users.sourceforge.net
Fri Jun 1 19:06:35 CEST 2007


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;
 		}
 }





More information about the Commits mailing list