Refactor extract_prefix() to first do the length checks and only then
authorclaudio <claudio@openbsd.org>
Thu, 30 Mar 2023 14:47:25 +0000 (14:47 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 30 Mar 2023 14:47:25 +0000 (14:47 +0000)
commit3f0f322f7a6d0e7aa683d3068b8ecef6be09fe6e
tree7c305aa59bd8e6708e80e51dbee96323f7326250
parent7403d59050c9e1df14c91f35dfb6174fb5c03816
Refactor extract_prefix() to first do the length checks and only then
copy the data out.
OK tb@
usr.sbin/bgpd/util.c