From f747b865aa23e31c94ef350ab601485fea1a1a7e Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 1 Jun 2007 17:06:33 +0000 Subject: 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 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 (){ 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; } } -- cgit v0.10-9-g596f