config: fix realloc() handling for the "upstream" option
authorDavid Härdeman <[email protected]>
Sun, 23 Nov 2025 13:50:00 +0000 (14:50 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 27 Nov 2025 07:24:38 +0000 (08:24 +0100)
commitadb2b8a1afffd805753dcc2e52c4764028116676
treeff8d697f5549d34d9290bf13c5d38dbaf610cd77
parentb4ab371c541ab481c7dff001964afd621b5a968d
config: fix realloc() handling for the "upstream" option

Deal properly with realloc() failure.

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