netutils/esp8266: Fix bug to get gateway address

Fix bug to get gateway address.

Signed-off-by: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com>
This commit is contained in:
SPRESENSE 2025-07-22 10:07:11 +09:00 committed by Alin Jerpelea
parent 5429191ab0
commit e61ee7981d

View file

@ -1771,7 +1771,7 @@ int lesp_get_net(lesp_mode_t mode, in_addr_t *ip,
{
ninfo("Read:%s\n", g_lesp_state.bufans);
ret = lesp_parse_cipxxx_ans_line(g_lesp_state.bufans, mask);
ret = lesp_parse_cipxxx_ans_line(g_lesp_state.bufans, gw);
if (ret < 0)
{
nerr("ERROR: Line badly formed.\n");