X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Fgendh.c;h=e0c7889a31e119a680f16cc112cdb071245bbf6c;hb=1b061845d7d8d04f272dd007a1cbdcfd9545f2ee;hp=caf5e8d736bd69545dc41b1e49d85a6d8f12acd9;hpb=f365611ca32190a032db1e292ccf55f110acea9a;p=oweals%2Fopenssl.git diff --git a/apps/gendh.c b/apps/gendh.c index caf5e8d736..e0c7889a31 100644 --- a/apps/gendh.c +++ b/apps/gendh.c @@ -142,7 +142,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) @@ -174,7 +182,7 @@ bad: end: if (ret != 0) ERR_print_errors(bio_err); - if (out != NULL) BIO_free(out); + if (out != NULL) BIO_free_all(out); if (dh != NULL) DH_free(dh); EXIT(ret); }