]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/net.c
net: dns: fix for DNS queries sent to the wrong MAC address
[people/ms/u-boot.git] / net / net.c
index 0f7625fde1dc52de2df5fb3ecd91589db24c7c56..722089f3b931b58eb1fef6a766a5847ff78c3747 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -385,14 +385,14 @@ restart:
 #endif
 #if defined(CONFIG_CMD_DHCP)
                case DHCP:
-                       BootpTry = 0;
+                       BootpReset();
                        NetOurIP = 0;
                        DhcpRequest();          /* Basically same as BOOTP */
                        break;
 #endif
 
                case BOOTP:
-                       BootpTry = 0;
+                       BootpReset();
                        NetOurIP = 0;
                        BootpRequest();
                        break;