config: fix erroneous clamp message if clamp value == max
authorPaul Donald <[email protected]>
Tue, 21 Oct 2025 13:46:29 +0000 (15:46 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 21 Oct 2025 17:20:47 +0000 (19:20 +0200)
commitc2eb4b59f107f1e2e0285e4d2d50235e95c90922
tree66d9defe38cab4c6be29cae81924029757bcff92
parent54b9e729b00d403e11e1678ef7904d6d09773975
config: fix erroneous clamp message if clamp value == max

If the clamp value is equal to and only equal to PD_MIN_LEN_MAX then the warn
is emitted, when it shouldn't be since PD_MIN_LEN_MAX is a valid max value.

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/283
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/config.c