The DNS loop checks for a non-zero IP address after DNS resolution, but the address is in fact never copied into the context. Fix that.
Signed-off-by: Jerome Forissier <jerome.foriss...@linaro.org> --- Changes in v2: - New patch cmd/lwip/dns.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/lwip/dns.c b/cmd/lwip/dns.c index be57a4d1b88..b757638cd1e 100644 --- a/cmd/lwip/dns.c +++ b/cmd/lwip/dns.c @@ -38,6 +38,8 @@ static void dns_cb(const char *name, const ip_addr_t *ipaddr, void *arg) return; } + dns_cb_arg->host_ipaddr.addr = ipaddr->addr; + if (dns_cb_arg->var) env_set(dns_cb_arg->var, ipstr); -- 2.43.0