mirror of https://github.com/acidanthera/audk.git
Enhance TargetName check when save iSCSI configuration.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Wu, Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16168 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d28c4ed72b
commit
b22203212a
|
@ -541,7 +541,24 @@ IScsiConvertIfrNvDataToAttemptConfigData (
|
||||||
);
|
);
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Validate iSCSI target name configuration again:
|
||||||
|
// The format of iSCSI target name is already verified in IScsiFormCallback() when
|
||||||
|
// user input the name; here we only check the case user does not input the name.
|
||||||
|
//
|
||||||
|
if (Attempt->SessionConfigData.TargetName[0] == '\0') {
|
||||||
|
CreatePopUp (
|
||||||
|
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||||
|
&Key,
|
||||||
|
L"iSCSI target name is NULL!",
|
||||||
|
NULL
|
||||||
|
);
|
||||||
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Validate the authentication info.
|
// Validate the authentication info.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue