projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: return 0 if no error occured.
[oweals/openssl.git]
/
apps
/
gendsa.c
diff --git
a/apps/gendsa.c
b/apps/gendsa.c
index b1a1c4fcfae9fdfb3c1aa1435b1566066be4659d..6022d8f1427a6c29f8d4d73f9e4f680f378b9930 100644
(file)
--- a/
apps/gendsa.c
+++ b/
apps/gendsa.c
@@
-178,7
+178,15
@@
bad:
if (out == NULL) goto end;
if (outfile == NULL)
if (out == NULL) goto end;
if (outfile == NULL)
+ {
BIO_set_fp(out,stdout,BIO_NOCLOSE);
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)
else
{
if (BIO_write_filename(out,outfile) <= 0)
@@
-209,9
+217,9
@@
end:
if (ret != 0)
ERR_print_errors(bio_err);
if (in != NULL) BIO_free(in);
if (ret != 0)
ERR_print_errors(bio_err);
if (in != NULL) BIO_free(in);
- if (out != NULL) BIO_free(out);
+ if (out != NULL) BIO_free
_all
(out);
if (dsa != NULL) DSA_free(dsa);
if (dsa != NULL) DSA_free(dsa);
- if(passout)
F
ree(passout);
+ if(passout)
OPENSSL_f
ree(passout);
EXIT(ret);
}
#endif
EXIT(ret);
}
#endif