The function X509_gmtime_adj() can fail
authorMatt Caswell <matt@openssl.org>
Mon, 12 Feb 2018 17:43:38 +0000 (17:43 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Feb 2018 15:24:46 +0000 (15:24 +0000)
commitbc2a0dd283c0f61df572b8c2aaf3bfc2dd4b7571
treef263250af32e2527cf939321eb861484634fe646
parentc471521243c729d344c2ab641feed7cfb7b8a36d
The function X509_gmtime_adj() can fail

Check for a failure and free a_tm as appropriate.

Found by Coverity

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5339)
apps/ca.c