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 (){ 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; } }