summaryrefslogtreecommitdiff
path: root/NetworkPkg
diff options
context:
space:
mode:
authorWu Jiaxin <jiaxin.wu@intel.com>2013-10-29 08:52:01 +0000
committerjiaxinwu <jiaxinwu@6f19259b-4bc3-4df7-8a09-765794883524>2013-10-29 08:52:01 +0000
commit107e3d7a37035ec386941ad8fafcd9e7d4b0fabe (patch)
treedc2a0efcab4f4e429ecbf5e1b0bc6afc41a8673a /NetworkPkg
parent25a516ab1a9dfccf2b71ec15771e99192c307418 (diff)
downloadedk2-platforms-107e3d7a37035ec386941ad8fafcd9e7d4b0fabe.tar.xz
Fix a K9 error.Result of GetVariable2() function that may return NULL will be dereferenced.
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com > Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Dong Guo <guo.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14814 6f19259b-4bc3-4df7-8a09-765794883524
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) {