summaryrefslogtreecommitdiffstats
path: root/apps/dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dh.c')
-rw-r--r--apps/dh.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/dh.c b/apps/dh.c
index ee71d95f0c..7465442e49 100644
--- a/apps/dh.c
+++ b/apps/dh.c
@@ -184,7 +184,15 @@ bad:
}
}
if (outfile == NULL)
+ {
BIO_set_fp(out,stdout,BIO_NOCLOSE);
+#ifdef VMS
+ {
+ BIO *tmpbio = BIO_new(BIO_f_linebuffer());
+ out = BIO_push(tmpbio, out);
+ }
+#endif
+ }
else
{
if (BIO_write_filename(out,outfile) <= 0)
@@ -309,7 +317,7 @@ bad:
ret=0;
end:
if (in != NULL) BIO_free(in);
- if (out != NULL) BIO_free(out);
+ if (out != NULL) BIO_free_all(out);
if (dh != NULL) DH_free(dh);
EXIT(ret);
}