X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Fdhparam.c;h=5f9b60148d6fb60610a7abaf887b2be721d137e6;hb=c29dbb9562f275485c1266af523cd5d59311d583;hp=a738c5af67841235868d58344e9aded2acd635ce;hpb=b598ea93e726b3ee8879a6319af12046f0193190;p=oweals%2Fopenssl.git diff --git a/apps/dhparam.c b/apps/dhparam.c index a738c5af67..5f9b60148d 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -391,7 +391,15 @@ bad: goto end; } 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) @@ -496,7 +504,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); }