config: fix realloc() error handling for "dhcpv6_raw" option
authorDavid Härdeman <[email protected]>
Sun, 23 Nov 2025 13:53:35 +0000 (14:53 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 27 Nov 2025 07:24:42 +0000 (08:24 +0100)
commit38b0920e376b236ea0b56686d08a4ef49b4bfcbe
tree90eb00fb5da76e996f5c9a995e81cbebfa7d82fa
parentadb2b8a1afffd805753dcc2e52c4764028116676
config: fix realloc() error handling for "dhcpv6_raw" option

Check the return value from realloc() to avoid leaking memory.

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