mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
25a516ab1a
commit
107e3d7a37
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue