openssl ca: open the output file as late as possible
authorRichard Levitte <levitte@openssl.org>
Thu, 21 Jun 2018 04:24:33 +0000 (06:24 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 21 Jun 2018 04:59:58 +0000 (06:59 +0200)
commit56c91e6dda3252b40396fcecd4005a823a8c7bf5
treedaef49b561bab119708f332b01e1f878afb44d0f
parentc35608e5422d2718868d88439e22369d4aabb7c6
openssl ca: open the output file as late as possible

Fixes #6544

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6546)

(cherry picked from commit 63871d9f810fec1e8a441d82c9ac79c58b19e2ad)
apps/ca.c