diff options
Diffstat (limited to 'plugins')
-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 cf3c403..84a1c8f 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
@@ -70,8 +70,10 @@ void np_net_ssl_cleanup (){ | |||
70 | if(s){ | 70 | if(s){ |
71 | SSL_shutdown (s); | 71 | SSL_shutdown (s); |
72 | SSL_free (s); | 72 | SSL_free (s); |
73 | if(c) SSL_CTX_free (c); | 73 | if(c) { |
74 | c=NULL; | 74 | SSL_CTX_free (c); |
75 | c=NULL; | ||
76 | } | ||
75 | s=NULL; | 77 | s=NULL; |
76 | } | 78 | } |
77 | } | 79 | } |