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:29:39 +0000 (15:29 +0000)
commiteadc6bbb9c472589020a25a94d306610a1d76af5
tree640280a4b620b8980ad4a0506fedcb0704a7f4bf
parent144724c75584054329a9d6bb7711cec527fbf523
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)

(cherry picked from commit bc2a0dd283c0f61df572b8c2aaf3bfc2dd4b7571)
apps/ca.c