diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2015-07-16 02:37:53 +0000 |
---|---|---|
committer | jiaxinwu <jiaxinwu@Edk2> | 2015-07-16 02:37:53 +0000 |
commit | 90ae1f0270caae87cf3faddacd8d43ba862a290f (patch) | |
tree | 8fbefb696001ddf826acd5eda92bef5465693bb6 /NetworkPkg/DnsDxe | |
parent | 547a6507936e6088302e01d6624d60f58d56b732 (diff) | |
download | edk2-90ae1f0270caae87cf3faddacd8d43ba862a290f.zip edk2-90ae1f0270caae87cf3faddacd8d43ba862a290f.tar.gz edk2-90ae1f0270caae87cf3faddacd8d43ba862a290f.tar.bz2 |
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
Diffstat (limited to 'NetworkPkg/DnsDxe')
-rw-r--r-- | NetworkPkg/DnsDxe/DnsProtocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/DnsDxe/DnsProtocol.c b/NetworkPkg/DnsDxe/DnsProtocol.c index eafa929..70857c2 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;
}
|