summaryrefslogtreecommitdiff
path: root/net/lwip/dns.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-04-23 08:53:23 -0600
committerTom Rini <trini@konsulko.com>2025-04-23 08:53:23 -0600
commit5d4a6995bb4311203a024200a402508fdf5d7dfb (patch)
tree6410ca5d2528856f84e425630d9109ea2961070b /net/lwip/dns.c
parent4446bc331c65d3efb8a9321d6368c61edb56479b (diff)
parent49ae68536f234c423c78e89913c64ae9b87ed0e8 (diff)
Merge tag 'net-20250423' of https://source.denx.de/u-boot/custodians/u-boot-net
Pull request net-20250423 net: - Make initr_net() invocation command line agnostic net-legacy: - net: dhcpv6: remove excluded middle expression - net: dhcp6: Send DHCPv6 using multicast MAC net-lwip: - lwIP sandbox tests misc: - cmd: Remove CMD_NET protection
Diffstat (limited to 'net/lwip/dns.c')
-rw-r--r--net/lwip/dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/lwip/dns.c b/net/lwip/dns.c
index 149bdb784dc..19172ac959a 100644
--- a/net/lwip/dns.c
+++ b/net/lwip/dns.c
@@ -121,7 +121,8 @@ int do_dns(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
if (argc == 3)
var = argv[2];
- net_lwip_set_current();
+ if (net_lwip_eth_start() < 0)
+ return CMD_RET_FAILURE;
return dns_loop(eth_get_dev(), name, var);
}