From 90ae1f0270caae87cf3faddacd8d43ba862a290f Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Thu, 16 Jul 2015 02:37:53 +0000 Subject: NetworkPkg: Add the unspecified address check for DNS6 StationIp. 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 Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18017 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/DnsDxe/DnsProtocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NetworkPkg/DnsDxe') diff --git a/NetworkPkg/DnsDxe/DnsProtocol.c b/NetworkPkg/DnsDxe/DnsProtocol.c index eafa92984c..70857c2b2f 100644 --- a/NetworkPkg/DnsDxe/DnsProtocol.c +++ b/NetworkPkg/DnsDxe/DnsProtocol.c @@ -874,7 +874,7 @@ Dns6Configure ( // // Configure the parameters for new operation. // - if (!NetIp6IsValidUnicast (&DnsConfigData->StationIp)) { + if (!NetIp6IsUnspecifiedAddr (&DnsConfigData->StationIp) && !NetIp6IsValidUnicast (&DnsConfigData->StationIp)) { Status = EFI_INVALID_PARAMETER; goto ON_EXIT; } -- cgit v1.2.3