Rework asn1_item_flags_i2d()
authortb <tb@openbsd.org>
Mon, 6 Mar 2023 12:00:27 +0000 (12:00 +0000)
committertb <tb@openbsd.org>
Mon, 6 Mar 2023 12:00:27 +0000 (12:00 +0000)
commit146a7c8d4188d18bd0690442e92ea3cfdf206e26
tree2832d84c73b2434bbe9525541d325276937b15fd
parentaecca5e6ce2eeab21033cbc0fbd3b19984b1fad8
Rework asn1_item_flags_i2d()

Flip the logic of NULL checks on out and *out to unindent, use calloc()
instead of malloc() and check on assign. Also drop the newly added len2
again, it isn't needed.

ok jsing
lib/libcrypto/asn1/tasn_enc.c