summaryrefslogtreecommitdiff
path: root/NetworkPkg
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/IScsiDxe/IScsiMisc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c
index 1079c187fa..6ed4974545 100644
--- a/NetworkPkg/IScsiDxe/IScsiMisc.c
+++ b/NetworkPkg/IScsiDxe/IScsiMisc.c
@@ -953,9 +953,10 @@ IScsiDhcpIsConfigured (
(VOID**)&AttemptTmp,
NULL
);
- if(EFI_ERROR (Status)) {
+ if(AttemptTmp == NULL || EFI_ERROR (Status)) {
continue;
}
+
ASSERT (AttemptConfigOrder[Index] == AttemptTmp->AttemptConfigIndex);
if (AttemptTmp->SessionConfigData.Enabled == ISCSI_DISABLED) {