Make NULL checks explicit in ASN1_item_sign_ctx()
authortb <tb@openbsd.org>
Thu, 15 Jun 2023 13:22:25 +0000 (13:22 +0000)
committertb <tb@openbsd.org>
Thu, 15 Jun 2023 13:22:25 +0000 (13:22 +0000)
commit549490569f0efe3683a9580bfafc40d5b6f52a37
treeb836d8e5f655f264d6b67c6c8b6092edc1585533
parent35520e3849edbf8c7171be7865eb0627fe0e8572
Make NULL checks explicit in ASN1_item_sign_ctx()

Also move the NULL check for the EVP_MD into the rv == 2 path, which
is the only branch where it is used.

ok jsing
lib/libcrypto/asn1/asn1_item.c