]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: lwip: dns: Fix print of resolved IP address
authorJonas Karlman <jonas@kwiboo.se>
Sat, 17 Jan 2026 00:24:37 +0000 (00:24 +0000)
committerJerome Forissier <jerome.forissier@arm.com>
Wed, 4 Feb 2026 08:04:36 +0000 (09:04 +0100)
commit35ee795d63977781960da9003a33ee78edb00da4
tree8aa062638725b38f76ddd80979c3ec7d2ee2df06
parentd93b3a38d5f847ec7420c86c98286c5d5d55c788
net: lwip: dns: Fix print of resolved IP address

The lwIP dns command only prints out cached resolved IP addresses.

When a hostname is first resolved and ERR_INPROGRESS is returned the
dns command prints out 0.0.0.0 instead of the resolved IP address.

Fix this by printing out host_ipaddr instead of the temporary ipaddr
that only is valid when ERR_OK is returned.

Fixes: 1361d9f4f00a ("lwip: dns: do not print IP address when a variable is specified")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Jerome Forissier <jerome.forissier@arm.com>
net/lwip/dns.c