app_load_config_bio(): fix crash on error

It turns out that the CONF_modules_load(conf, NULL, 0) call is just wrong.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12817)
This commit is contained in:
Dr. David von Oheimb 2020-09-08 14:31:59 +02:00
parent 3101ab603c
commit 388f2d9f6c

View File

@ -389,7 +389,6 @@ CONF *app_load_config_bio(BIO *in, const char *filename)
else
BIO_printf(bio_err, "config input");
CONF_modules_load(conf, NULL, 0);
NCONF_free(conf);
return NULL;
}