Reinitialize global variables when necessary (for monolith application).
[openssl.git] / apps / ca.c
index 42dc42004529991d2cdb099e3e039ad7425def90..1450c0cfd208164c7c60f0fd8e6f1b11b0a365b8 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -273,9 +273,13 @@ EF_ALIGNMENT=0;
 
        apps_startup();
 
+       key = NULL;
+       section = NULL;
+
        X509V3_add_standard_extensions();
 
        preserve=0;
+       msie_hack=0;
        if (bio_err == NULL)
                if ((bio_err=BIO_new(BIO_s_file())) != NULL)
                        BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);