Add error checks for i2d_X509_NAME()
authortb <tb@openbsd.org>
Mon, 26 Jul 2021 16:54:20 +0000 (16:54 +0000)
committertb <tb@openbsd.org>
Mon, 26 Jul 2021 16:54:20 +0000 (16:54 +0000)
commite59a47be8d3bfb52a9d0d390033b7ba19b724aac
tree798a0a455c7e16b1aa24490d060ac40ac71f8a4b
parent5641a7fac263d8abc97aa712ff82a6977170335f
Add error checks for i2d_X509_NAME()

This avoids potential malloc(-1) and malloc(0), spotted by schwarze
while documenting X509_ocspid_print().

ok schwarze
lib/libcrypto/asn1/t_x509.c