X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fx509.c;h=9422e1d15cdef004d915ad272eb5203b5fc3a599;hp=de25790145dad2b8fab18150d7251df9f4af648e;hb=2c0d10123eac1117d64a8476bbc1f730439403ab;hpb=3ac82faae5eb02140f347610be0726f549a0aa0a diff --git a/apps/x509.c b/apps/x509.c index de25790145..9422e1d15c 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -498,8 +498,15 @@ bad: ,errorline,extfile); goto end; } - if (!extsect && !(extsect = CONF_get_string(extconf, "default", - "extensions"))) extsect = "default"; + if (!extsect) + { + extsect = CONF_get_string(extconf, "default", "extensions"); + if (!extsect) + { + ERR_clear_error(); + extsect = "default"; + } + } X509V3_set_ctx_test(&ctx2); X509V3_set_conf_lhash(&ctx2, extconf); if (!X509V3_EXT_add_conf(extconf, &ctx2, extsect, NULL))