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:
Holger Weiss 2007-06-01 17:06:33 +00:00
parent bad9e04c54
commit f747b865aa

View file

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