Check the return code from ASN1_TIME_diff()
authorMatt Caswell <matt@openssl.org>
Mon, 12 Feb 2018 17:47:50 +0000 (17:47 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Feb 2018 15:24:47 +0000 (15:24 +0000)
commit0d502c3511ab3b1c8acb129fb3af836727b8092d
tree6c2c515767d0c9f10b63e2acd79343408676fa34
parentbc2a0dd283c0f61df572b8c2aaf3bfc2dd4b7571
Check the return code from ASN1_TIME_diff()

The function can fail so we should check the return code.

Found by Coverity

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