summaryrefslogtreecommitdiffstats
path: root/apps/pkcs7.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-06-23 16:37:32 +0000
committerRichard Levitte <levitte@openssl.org>2001-06-23 16:37:32 +0000
commitc04f8cf44a3b204b82f5f1f5d1ad9dbc738459f1 (patch)
tree976a776db3dba0efd3e7c2ffed56bdad6125fb82 /apps/pkcs7.c
parent870d986131869300c8510fdba2b4937658f3fa34 (diff)
Use apps_shutdown() in all applications, in case someone decides not
to go the monolith way (does anyone do that these days?). NOTE: a few applications are missing in this commit. I've a few more changes in them that I haven't tested yet.
Diffstat (limited to 'apps/pkcs7.c')
-rw-r--r--apps/pkcs7.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pkcs7.c b/apps/pkcs7.c
index f3df25fe8b..a0b21341f5 100644
--- a/apps/pkcs7.c
+++ b/apps/pkcs7.c
@@ -163,7 +163,8 @@ bad:
BIO_printf(bio_err," -text print full details of certificates\n");
BIO_printf(bio_err," -noout don't output encoded data\n");
BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
- EXIT(1);
+ ret = 1;
+ goto end;
}
ERR_load_crypto_strings();
@@ -300,5 +301,6 @@ end:
if (p7 != NULL) PKCS7_free(p7);
if (in != NULL) BIO_free(in);
if (out != NULL) BIO_free_all(out);
+ apps_shutdown();
EXIT(ret);
}