X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fcrl2p7.c;h=b2f2d121d56cb8739f32d6b9a6173051fdd98d55;hp=7f853b65ab2b13bb2cba055bbce53503965970ef;hb=5cc5ec1bbaf2ae01475ef841ea6e0ed10fff997b;hpb=645749ef98612340b11c4bf2ba856e1fa469912b diff --git a/apps/crl2p7.c b/apps/crl2p7.c index 7f853b65ab..b2f2d121d5 100644 --- a/apps/crl2p7.c +++ b/apps/crl2p7.c @@ -166,7 +166,8 @@ bad: BIO_printf(bio_err," -certfile arg certificates file of chain to a trusted CA\n"); BIO_printf(bio_err," (can be used more than once)\n"); BIO_printf(bio_err," -nocrl no crl to load, just certs from '-certfile'\n"); - EXIT(1); + ret = 1; + goto end; } ERR_load_crypto_strings(); @@ -241,7 +242,7 @@ bad: if (outfile == NULL) { BIO_set_fp(out,stdout,BIO_NOCLOSE); -#ifdef VMS +#ifdef OPENSSL_SYS_VMS { BIO *tmpbio = BIO_new(BIO_f_linebuffer()); out = BIO_push(tmpbio, out); @@ -278,7 +279,8 @@ end: if (p7 != NULL) PKCS7_free(p7); if (crl != NULL) X509_CRL_free(crl); - EXIT(ret); + apps_shutdown(); + OPENSSL_EXIT(ret); } /*