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