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:29:39 +0000 (15:29 +0000)
commited1306451f702aae629ccc39d826a96836b3b069
tree8f091712991a8194a9f4941a52e74e2b0bafec16
parenteadc6bbb9c472589020a25a94d306610a1d76af5
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)

(cherry picked from commit 0d502c3511ab3b1c8acb129fb3af836727b8092d)
apps/ca.c