IAIDs can start at 0.
authorflorian <florian@openbsd.org>
Tue, 4 Jun 2024 15:48:47 +0000 (15:48 +0000)
committerflorian <florian@openbsd.org>
Tue, 4 Jun 2024 15:48:47 +0000 (15:48 +0000)
commit92119d768f45cf44645fc7f9c2fe90112b6d3f97
tree3ba4b652f9abcbc5266e7c77685af416fd3bb80a
parent1457ca8725ed4b2243ae5e62536b5691f061f6e3
IAIDs can start at 0.

I was under the impression that an IAID of 0 is special, but that's
not true. Letting IAID start at zero makes array indexing easier and
avoids an out of bounds access pointed out by dhill.

While here, do not trust IAID received via imsg but do our own
accounting.
sbin/dhcp6leased/engine.c
sbin/dhcp6leased/frontend.c
sbin/dhcp6leased/parse.y