diff options
author | Wu Jiaxin <jiaxin.wu@intel.com> | 2013-10-29 08:52:01 +0000 |
---|---|---|
committer | jiaxinwu <jiaxinwu@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-10-29 08:52:01 +0000 |
commit | 107e3d7a37035ec386941ad8fafcd9e7d4b0fabe (patch) | |
tree | dc2a0efcab4f4e429ecbf5e1b0bc6afc41a8673a /NetworkPkg | |
parent | 25a516ab1a9dfccf2b71ec15771e99192c307418 (diff) | |
download | edk2-107e3d7a37035ec386941ad8fafcd9e7d4b0fabe.tar.gz edk2-107e3d7a37035ec386941ad8fafcd9e7d4b0fabe.tar.bz2 edk2-107e3d7a37035ec386941ad8fafcd9e7d4b0fabe.zip |
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.c | 3 |
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) {
|