Clean up ndef_{prefix,suffix}_free()
authortb <tb@openbsd.org>
Mon, 6 Mar 2023 19:10:14 +0000 (19:10 +0000)
committertb <tb@openbsd.org>
Mon, 6 Mar 2023 19:10:14 +0000 (19:10 +0000)
commit32464f6abc9225162d3f288b0c5fddf8c4838d63
tree0122865541a7117148458d22d2af939b4caec79d
parent8e30ef80ae3b3c5c4f702e2b7b5a679af00decfc
Clean up ndef_{prefix,suffix}_free()

These functions are rather similar, so there's no need for the code to
be wildly different. Add a missing NULL check to ndef_prefix_free() since
that will be needed in a subsequent commit.

ok jsing
lib/libcrypto/asn1/bio_ndef.c