]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpDxe/HttpDns.c
NetworkPkg: Fix protocol handler service in HttpDxe.
[mirror_edk2.git] / NetworkPkg / HttpDxe / HttpDns.c
index 0f5fe180727025d475f7a535bf43b1639260caac..59cd7b325189b4c777812c38426a4c87d38e1a85 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines for HttpDxe driver to perform DNS resolution based on UEFI DNS protocols.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 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
@@ -88,7 +88,7 @@ HttpDns4 (
   //\r
   Status = NetLibCreateServiceChild (\r
              Service->ControllerHandle,\r
-             Service->ImageHandle,\r
+             Service->Ip4DriverBindingHandle,\r
              &gEfiDns4ServiceBindingProtocolGuid,\r
              &Dns4Handle\r
              );\r
@@ -100,7 +100,7 @@ HttpDns4 (
                   Dns4Handle,\r
                   &gEfiDns4ProtocolGuid,\r
                   (VOID **) &Dns4,\r
-                  Service->ImageHandle,\r
+                  Service->Ip4DriverBindingHandle,\r
                   Service->ControllerHandle,\r
                   EFI_OPEN_PROTOCOL_BY_DRIVER\r
                   );\r
@@ -196,7 +196,7 @@ Exit:
     gBS->CloseProtocol (\r
            Dns4Handle,\r
            &gEfiDns4ProtocolGuid,\r
-           Service->ImageHandle,\r
+           Service->Ip4DriverBindingHandle,\r
            Service->ControllerHandle\r
            );\r
   }\r
@@ -204,7 +204,7 @@ Exit:
   if (Dns4Handle != NULL) {\r
     NetLibDestroyServiceChild (\r
       Service->ControllerHandle,\r
-      Service->ImageHandle,\r
+      Service->Ip4DriverBindingHandle,\r
       &gEfiDns4ServiceBindingProtocolGuid,\r
       Dns4Handle\r
       );\r
@@ -290,7 +290,7 @@ HttpDns6 (
   //\r
   Status = NetLibCreateServiceChild (\r
              Service->ControllerHandle,\r
-             Service->ImageHandle,\r
+             Service->Ip6DriverBindingHandle,\r
              &gEfiDns6ServiceBindingProtocolGuid,\r
              &Dns6Handle\r
              );\r
@@ -302,7 +302,7 @@ HttpDns6 (
                   Dns6Handle,\r
                   &gEfiDns6ProtocolGuid,\r
                   (VOID **) &Dns6,\r
-                  Service->ImageHandle,\r
+                  Service->Ip6DriverBindingHandle,\r
                   Service->ControllerHandle,\r
                   EFI_OPEN_PROTOCOL_BY_DRIVER\r
                   );\r
@@ -393,7 +393,7 @@ Exit:
     gBS->CloseProtocol (\r
            Dns6Handle,\r
            &gEfiDns6ProtocolGuid,\r
-           Service->ImageHandle,\r
+           Service->Ip6DriverBindingHandle,\r
            Service->ControllerHandle\r
            );\r
   }\r
@@ -401,7 +401,7 @@ Exit:
   if (Dns6Handle != NULL) {\r
     NetLibDestroyServiceChild (\r
       Service->ControllerHandle,\r
-      Service->ImageHandle,\r
+      Service->Ip6DriverBindingHandle,\r
       &gEfiDns6ServiceBindingProtocolGuid,\r
       Dns6Handle\r
       );\r