Code

Set the pointers to the SSL and SSL_CTX objects back to NULL after
[nagiosplug.git] / plugins / sslutils.c
index 09d58b0f2f4c390aaf7358b485dbf8996e55bd7d..cf3c40322ada8078de3ff80a735c567ff35ecd7f 100644 (file)
@@ -71,6 +71,8 @@ void np_net_ssl_cleanup (){
                                SSL_shutdown (s);
                                SSL_free (s);
                                if(c) SSL_CTX_free (c);
+                               c=NULL;
+                               s=NULL;
                }
 }