diff options
author | Holger Weiss <hweiss@users.sourceforge.net> | 2007-06-01 17:06:33 +0000 |
---|---|---|
committer | Holger Weiss <hweiss@users.sourceforge.net> | 2007-06-01 17:06:33 +0000 |
commit | f747b865aa23e31c94ef350ab601485fea1a1a7e (patch) | |
tree | 4ec4db5eeed47ed03064a33a9165bd60b14b80d5 /plugins/sslutils.c | |
parent | bad9e04c542d0cf07a14b843f0d38f78c2b0b03c (diff) | |
download | monitoring-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/sslutils.c')
-rw-r--r-- | plugins/sslutils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index cf3c4032..84a1c8fc 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 | } |