Remainder of SSL purpose and trust code: trust and purpose setting in
[openssl.git] / apps / s_server.c
index a33e0ff1477046506bca972a357bd2d948c5e469..7a3a028b6e296e43b897020ca2af2dd705dccad0 100644 (file)
@@ -718,6 +718,7 @@ bad:
        ret=0;
 end:
        if (ctx != NULL) SSL_CTX_free(ctx);
        ret=0;
 end:
        if (ctx != NULL) SSL_CTX_free(ctx);
+       X509_cleanup();
        if (bio_s_out != NULL)
                {
                BIO_free(bio_s_out);
        if (bio_s_out != NULL)
                {
                BIO_free(bio_s_out);