app_load_config_bio(): fix crash on error
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Tue, 8 Sep 2020 12:31:59 +0000 (14:31 +0200)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Thu, 10 Sep 2020 10:03:51 +0000 (12:03 +0200)
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)

apps/lib/apps.c

index f10e91deb7925afa61437d75d379d9d51ff0420f..878ec18f0b1a4214720b3206cda57a92ec55051b 100644 (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;
 }