mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-22 18:01:29 +01:00
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 <jerome.forissier@linaro.org>
This commit is contained in:
parent
d3761a31ef
commit
d3136d22a6
@ -39,6 +39,8 @@ static void dns_cb(const char *name, const ip_addr_t *ipaddr, void *arg)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dns_cb_arg->host_ipaddr.addr = ipaddr->addr;
|
||||||
|
|
||||||
if (dns_cb_arg->var)
|
if (dns_cb_arg->var)
|
||||||
env_set(dns_cb_arg->var, ipstr);
|
env_set(dns_cb_arg->var, ipstr);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user