From: Jerome Forissier Date: Wed, 25 Jun 2025 13:19:14 +0000 (+0200) Subject: lwip: dns: do not return CMD_RET_FAILURE on successful resolution X-Git-Tag: v2025.10-rc1~132^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3136d22a6a26b89c62774898154b16ee37385bd;p=thirdparty%2Fu-boot.git lwip: dns: do not return CMD_RET_FAILURE on successful resolution 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 --- diff --git a/cmd/lwip/dns.c b/cmd/lwip/dns.c index 0af538e18f5..92312eb5a9d 100644 --- a/cmd/lwip/dns.c +++ b/cmd/lwip/dns.c @@ -39,6 +39,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);