Reinitialize conf to NULL whenver ca application is started.
authorBodo Möller <bodo@openssl.org>
Sun, 5 Sep 1999 20:53:08 +0000 (20:53 +0000)
committerBodo Möller <bodo@openssl.org>
Sun, 5 Sep 1999 20:53:08 +0000 (20:53 +0000)
Submitted by: Lennart Bang

apps/ca.c

index 1450c0cfd208164c7c60f0fd8e6f1b11b0a365b8..63cd7a1965f22749fab709303e6867357ccf6182 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -206,7 +206,7 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, const EVP_MD *dgst,
        X509_REQ *req, char *ext_sect, LHASH *conf);
 static int do_revoke(X509 *x509, TXT_DB *db);
 static int check_time_format(char *str);
-static LHASH *conf;
+static LHASH *conf=NULL;
 static char *key=NULL;
 static char *section=NULL;
 
@@ -273,6 +273,7 @@ EF_ALIGNMENT=0;
 
        apps_startup();
 
+       conf = NULL;
        key = NULL;
        section = NULL;