summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-05-12 17:11:58 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-05-12 17:11:58 +0000
commit1bd06bd0c4028cd05ca8b09db3ca2579f6232ca5 (patch)
tree1d1b69baf219e05d2bfa3f6b9767a89648fcaa6e /apps
parent9540ccdf1f845497c3e0bf9126866c9038838a9a (diff)
downloadopenssl-new-1bd06bd0c4028cd05ca8b09db3ca2579f6232ca5.tar.gz
In interactive mode only config OpenSSL once.
Diffstat (limited to 'apps')
-rw-r--r--apps/apps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c
index c4a7f12e73..d2b0c565a0 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -1437,6 +1437,10 @@ ENGINE *setup_engine(BIO *err, const char *engine, int debug)
int load_config(BIO *err, CONF *cnf)
{
+ static int load_config_called = 0;
+ if (load_config_called)
+ return 1;
+ load_config_called = 1;
if (!cnf)
cnf = config;
if (!cnf)