Remove disgusting NULL checks in tm_to_{gentime,utctime}()
authortb <tb@openbsd.org>
Fri, 3 May 2024 18:33:27 +0000 (18:33 +0000)
committertb <tb@openbsd.org>
Fri, 3 May 2024 18:33:27 +0000 (18:33 +0000)
commitc604ab84837e7f949d28ecd1ff96b40c36777c45
treedc7a234639c0dd751027a6e6a10cbe4372bc7e90
parent40a2c71e10bab4984b616bf3b1727a2beead6624
Remove disgusting NULL checks in tm_to_{gentime,utctime}()

The only caller that could potentially call these with NULL has been fixed.
This way an ugly hack that was needed to plug a memory leak can go away and
the functions again behave as intended without OpenSSL-style workarounds.

ok beck
lib/libcrypto/asn1/a_time_tm.c