]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Add the unspecified address check for DNS6 StationIp.
authorJiaxin Wu <jiaxin.wu@intel.com>
Thu, 16 Jul 2015 02:37:53 +0000 (02:37 +0000)
committerjiaxinwu <jiaxinwu@Edk2>
Thu, 16 Jul 2015 02:37:53 +0000 (02:37 +0000)
Add the unspecified address check for DNS6 StationIp,
so the underlying driver will choose the source address.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18017 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/DnsDxe/DnsProtocol.c

index eafa92984c39f164fd7818212d5478e35cba5b80..70857c2b2f49290a9c58f62bd6f257aa258c33d0 100644 (file)
@@ -874,7 +874,7 @@ Dns6Configure (
     //\r
     // Configure the parameters for new operation.\r
     //\r
-    if (!NetIp6IsValidUnicast (&DnsConfigData->StationIp)) {\r
+    if (!NetIp6IsUnspecifiedAddr (&DnsConfigData->StationIp) && !NetIp6IsValidUnicast (&DnsConfigData->StationIp)) {\r
       Status = EFI_INVALID_PARAMETER;\r
       goto ON_EXIT;\r
     }\r