diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2018-03-12 08:50:12 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2018-03-13 16:55:24 +0800 |
commit | 841d8698dd6de2d74e7694b6d206a05c5098f5b2 (patch) | |
tree | a741743e1d81a0c54d5568d5fdd648031a079811 /NetworkPkg | |
parent | c8e342e00b7e9f1a7b592a5eb1e589635e484660 (diff) | |
download | edk2-841d8698dd6de2d74e7694b6d206a05c5098f5b2.zip edk2-841d8698dd6de2d74e7694b6d206a05c5098f5b2.tar.gz edk2-841d8698dd6de2d74e7694b6d206a05c5098f5b2.tar.bz2 |
NetworkPkg/IScsiDxe: Fix the ISCSI connection failure in certain case.
The ISCSI connection will fail for the first time if the target info is
retrieved from DHCP and expressed as URI format. The issue is caused by
the missing DNS protocol dependency check during the driver support
function.
This patch is to fix the above issue.
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/IScsiDxe/IScsiMisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c index 94f3725..745b7ac 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.c +++ b/NetworkPkg/IScsiDxe/IScsiMisc.c @@ -1984,7 +1984,7 @@ IScsiDnsIsConfigured ( continue;
}
- if (AttemptTmp->SessionConfigData.DnsMode) {
+ if (AttemptTmp->SessionConfigData.DnsMode || AttemptTmp->SessionConfigData.TargetInfoFromDhcp) {
FreePool (AttemptTmp);
FreePool (AttemptConfigOrder);
return TRUE;
|