summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}