summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
index 16ffec0..2e43b41 100644
--- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
+++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
@@ -656,10 +656,9 @@ IScsiDhcpIsConfigured (
(VOID**)&ConfigDataTmp,
NULL
);
- if (EFI_ERROR (Status)) {
+ if (ConfigDataTmp == NULL || EFI_ERROR (Status)) {
return FALSE;
}
-
if (ConfigDataTmp->Enabled && ConfigDataTmp->InitiatorInfoFromDhcp) {
FreePool (ConfigDataTmp);