dhcpv6: fix processing PIO exclusion loop variable collision
authorPaul Donald <[email protected]>
Mon, 17 Nov 2025 03:18:26 +0000 (04:18 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 18 Nov 2025 07:18:57 +0000 (08:18 +0100)
commitaf9968c0293fd2ca81edfc29575decb006cd73fc
tree7e4b0c61b26ea092c60d9bf20e7adf3321f4bc81
parent5492f09ec07514cf8543bc06c34556e24b590852
dhcpv6: fix processing PIO exclusion loop variable collision

An inner loop variable i potentially collides with the outer loop i, possibly
giving unexpected results.
Commit b146f9adc80c introduced both the inner and outer loop.

Fixes: b146f9adc80c ("add support for multiple prefixes with distinct IAIDs")
Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/124
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c