The number of elements being processed is known upfront. So allocate the
authorclaudio <claudio@openbsd.org>
Wed, 8 Sep 2021 16:37:20 +0000 (16:37 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 8 Sep 2021 16:37:20 +0000 (16:37 +0000)
commit185bc85825dc5ffeb4040a1c601d28d6e32f5f54
treee297fefecd1113ec5edae6420f51783de16945ea
parentf88b40218849498b617e3f1ebe9b1af8ef577670
The number of elements being processed is known upfront. So allocate the
storage needed outside of the loop. This reduces the number of recallocarray
calls.
OK tb@
usr.sbin/rpki-client/mft.c
usr.sbin/rpki-client/roa.c