X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Ferrstr.c;h=19489b0df3b7b9d7a83c924e77fc2107bce84e1e;hb=cb1fbf9f63065207737b76da55d0d729c17cbaed;hp=2c6204647692bf5150db3104958ec22c8987f290;hpb=e5c84d5152c11a3dfa436041d3336a6f403baad8;p=openssl.git diff --git a/apps/errstr.c b/apps/errstr.c index 2c62046476..19489b0df3 100644 --- a/apps/errstr.c +++ b/apps/errstr.c @@ -91,12 +91,18 @@ int MAIN(int argc, char **argv) out=BIO_new(BIO_s_file()); if ((out != NULL) && BIO_set_fp(out,stdout,BIO_NOCLOSE)) { +#ifdef OPENSSL_SYS_VMS + { + BIO *tmpbio = BIO_new(BIO_f_linebuffer()); + out = BIO_push(tmpbio, out); + } +#endif lh_node_stats_bio((LHASH *)ERR_get_string_table(),out); lh_stats_bio((LHASH *)ERR_get_string_table(),out); lh_node_usage_stats_bio((LHASH *) ERR_get_string_table(),out); } - if (out != NULL) BIO_free(out); + if (out != NULL) BIO_free_all(out); argc--; argv++; } @@ -115,5 +121,6 @@ int MAIN(int argc, char **argv) ret++; } } - EXIT(ret); + apps_shutdown(); + OPENSSL_EXIT(ret); }