commit | 595bf7d63ca338dbe5cb36a5efbb31e07f129331 | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome.forissier@linaro.org> | Fri Nov 22 13:35:29 2024 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Nov 22 14:37:21 2024 -0600 |
tree | 205ed2fa761ee940d75a5e5d7cc3afbfd1df669a | |
parent | 33342f08eaa401938139a89661654864e1752a5f [diff] |
net: lwip: fix dhcp_loop() The local variables ipstr, maskstr and gwstr in static function dhcp_loop() cannot be pointers to read-only data, since they may be written to in case the device index is > 0. Therefore make them char arrays allocated on the stack. Reported-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>