mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
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
This commit is contained in:
parent
bad9e04c54
commit
f747b865aa
1 changed files with 4 additions and 2 deletions
|
|
@ -70,8 +70,10 @@ void np_net_ssl_cleanup (){
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue