RT3861: Mem/bio leak in req command
authorHanno Böck <hanno@hboeck.de>
Mon, 25 May 2015 20:18:07 +0000 (16:18 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 25 May 2015 23:13:26 +0000 (19:13 -0400)
commitcf89a80e25b79ae0e6004e4a2509bf656fb59168
tree3fa8dbe7f3323e45bf785e025ddbe50455cd2ce0
parentcc630cdbcc77859a8d4ada54d3c986afe9f9dece
RT3861: Mem/bio leak in req command

The "out" variable is used for both key and csr.  Close it after
writing the first one so it can be re-used when writing the other.

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
apps/req.c