Clean up X509_EXTENSION_create_by_NID()
authortb <tb@openbsd.org>
Fri, 12 Jul 2024 09:25:43 +0000 (09:25 +0000)
committertb <tb@openbsd.org>
Fri, 12 Jul 2024 09:25:43 +0000 (09:25 +0000)
commitdb996e510fa9ca1d20885e30e0b103f3584c6ce9
treedbfac056c790cbdc274c54bba71dc111dfe77f87
parent2c9f5b1f9b63d3c42782e20a33197935b7bc2209
Clean up X509_EXTENSION_create_by_NID()

Remove unnecessary ret parameter and freeing of obj (which looks like
a double free or freeing of unallocated memory but actually isn't due
to various magic flags). Also make this const correct.

ok jsing
lib/libcrypto/x509/x509_v3.c