From 02a7774295d6dca0e2349ee4034bc991d4024d60 Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Mon, 12 Mar 2018 08:50:12 +0800 Subject: [PATCH] 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 Cc: Ye Ting Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu Reviewed-by: Fu Siyuan (cherry picked from commit 841d8698dd6de2d74e7694b6d206a05c5098f5b2) --- NetworkPkg/IScsiDxe/IScsiMisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c index 94f3725866..745b7ac07b 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;