summaryrefslogtreecommitdiff
path: root/net/dns.c
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2014-10-07 19:14:03 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2014-10-07 19:14:03 +0900
commit3cc83f9d08a80fddf4c1e8e766eff8273f30814c (patch)
tree831246a1b77d26d0296a84c90684e0fee0368737 /net/dns.c
parent64f41212d880f3d00c6994d973aadeec5bda1b65 (diff)
parent6dd0e7c00bfa5ce861a72b8e4a3ef9e787306125 (diff)
downloadu-boot-imx-3cc83f9d08a80fddf4c1e8e766eff8273f30814c.zip
u-boot-imx-3cc83f9d08a80fddf4c1e8e766eff8273f30814c.tar.gz
u-boot-imx-3cc83f9d08a80fddf4c1e8e766eff8273f30814c.tar.bz2
Merge branch 'uboot'
Diffstat (limited to 'net/dns.c')
-rw-r--r--net/dns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dns.c b/net/dns.c
index ff9ddff..dd45320 100644
--- a/net/dns.c
+++ b/net/dns.c
@@ -202,5 +202,8 @@ DnsStart(void)
NetSetTimeout(DNS_TIMEOUT, DnsTimeout);
net_set_udp_handler(DnsHandler);
+ /* Clear a previous MAC address, the server IP might have changed. */
+ memset(NetServerEther, 0, sizeof(NetServerEther));
+
DnsSend();
}