Do not copy stack garbage, that's not going to be used.
authorflorian <florian@openbsd.org>
Tue, 10 Oct 2023 16:09:53 +0000 (16:09 +0000)
committerflorian <florian@openbsd.org>
Tue, 10 Oct 2023 16:09:53 +0000 (16:09 +0000)
commit4f8d227ca362caaf47b25b8aa637dad1f995f487
treee1390bd215c67ccdd2cba13f03a4b39405fed83f
parent578f8c8857308c1dca3745fe0bae04d8bd0556b8
Do not copy stack garbage, that's not going to be used.

Pointed out by gcc via tb.

rdns_count is validated by all callers of propose_rdns(), so we can
trust it here to be sensible.

While here fix a pasto in an error message.

OK tb
sbin/dhcpleased/dhcpleased.c