summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorHolger Weiss <hweiss@users.sourceforge.net>2007-06-01 17:06:33 (GMT)
committerHolger Weiss <hweiss@users.sourceforge.net>2007-06-01 17:06:33 (GMT)
commitf747b865aa23e31c94ef350ab601485fea1a1a7e (patch)
tree4ec4db5eeed47ed03064a33a9165bd60b14b80d5 /plugins
parentbad9e04c542d0cf07a14b843f0d38f78c2b0b03c (diff)
downloadmonitoring-plugins-f747b865aa23e31c94ef350ab601485fea1a1a7e.tar.gz
Save an entire CPU cycle if c points to NULL already.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1725 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sslutils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index cf3c403..84a1c8f 100644
--- a/plugins/sslutils.c
+++ b/plugins/sslutils.c
@@ -70,8 +70,10 @@ void np_net_ssl_cleanup (){
70 if(s){ 70 if(s){
71 SSL_shutdown (s); 71 SSL_shutdown (s);
72 SSL_free (s); 72 SSL_free (s);
73 if(c) SSL_CTX_free (c); 73 if(c) {
74 c=NULL; 74 SSL_CTX_free (c);
75 c=NULL;
76 }
75 s=NULL; 77 s=NULL;
76 } 78 }
77} 79}