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 <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
This commit is contained in:
Jiaxin Wu 2015-07-16 02:37:53 +00:00 committed by jiaxinwu
parent 547a650793
commit 90ae1f0270
1 changed files with 1 additions and 1 deletions

View File

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