dhcpv6-ia: fix crash in dhcpv6_free_lease()
authorDavid Härdeman <[email protected]>
Mon, 1 Dec 2025 07:37:32 +0000 (08:37 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 1 Dec 2025 08:06:32 +0000 (09:06 +0100)
commit94ef124f726e216648670c6319fd227fdb2691dd
tree925761fd5e1d330cc4d6f568fd03be13d57194e8
parentbb2da6dcb58d2359059b1aca126fcf8c828f32f4
dhcpv6-ia: fix crash in dhcpv6_free_lease()

Note that dhcpv6_free_lease() can be called with a NULL argument e.g.
from dhcpv6_ia_handle_IAs() when iface->no_dynamic_dhcp is set and a
client without a static lease cfg tries to get a dynamic lease.

Closes: #321
Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/335
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6-ia.c