]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/DnsDxe/DnsDriver.c
NetworkPkg/DnsDxe: Fix zero StationIp configuration failure of DNSv6
[mirror_edk2.git] / NetworkPkg / DnsDxe / DnsDriver.c
index c000b5f5a5ede9e47dd3e87adced8772fd10be0c..5dc9afe4489175eb7947441c604a9a47518c8377 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 The driver binding and service binding protocol for DnsDxe driver.\r
 \r
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -279,18 +279,16 @@ DnsCreateService (
   // Create the timer used to time out the procedure which is used to\r
   // get the default IP address.\r
   //\r
-  if (DnsSb->IpVersion == IP_VERSION_4) {\r
-    Status = gBS->CreateEvent (\r
-                    EVT_TIMER,\r
-                    TPL_CALLBACK,\r
-                    NULL,\r
-                    NULL,\r
-                    &DnsSb->TimerToGetMap\r
-                    );\r
-    if (EFI_ERROR (Status)) {\r
-      FreePool (DnsSb);\r
-      return Status;\r
-    }\r
+  Status = gBS->CreateEvent (\r
+                  EVT_TIMER,\r
+                  TPL_CALLBACK,\r
+                  NULL,\r
+                  NULL,\r
+                  &DnsSb->TimerToGetMap\r
+                  );\r
+  if (EFI_ERROR (Status)) {\r
+    FreePool (DnsSb);\r
+    return Status;\r
   }\r
   \r
   //\r