Avoid passing last and depth to x509_verify_cert_error() on ENOMEM.
authorjsing <jsing@openbsd.org>
Thu, 25 Feb 2021 16:57:10 +0000 (16:57 +0000)
committerjsing <jsing@openbsd.org>
Thu, 25 Feb 2021 16:57:10 +0000 (16:57 +0000)
commitd963395a74aa582487bb878f0de671997d3b9a09
treece0cc58235e5285a17d56fa555934a4d5104d262
parent19aed9fc1bc211bc77ba2c7c4b875067ff9ef027
Avoid passing last and depth to x509_verify_cert_error() on ENOMEM.

In x509_verify_ctx_set_xsc_chain(), an ENOMEM case is currently passing
the last certificate and depth (which is no longer actually depth) to
x509_verify_cert_error(). Given we've hit an ENOMEM situation, neither
of these are useful so remove both.

ok tb@
lib/libcrypto/x509/x509_verify.c