mirror of https://github.com/acidanthera/audk.git
NetworkPkg: Add check logic for iSCSI driver.
Need to check variable of mPrivate whether is null before used and redefine the array length of target address for keyword. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
This commit is contained in:
parent
861c8dff2f
commit
b28bf4143d
|
@ -744,7 +744,6 @@ IScsiConvertAttemptConfigDataToIfrNvDataByKeyword (
|
|||
}
|
||||
}
|
||||
CopyMem(IfrNvData->ISCSIDisplayAttemptList, AttemptNameList, ATTEMPT_NAME_LIST_SIZE);
|
||||
}
|
||||
|
||||
NET_LIST_FOR_EACH (Entry, &mPrivate->NicInfoList) {
|
||||
NicInfo = NET_LIST_USER_STRUCT (Entry, ISCSI_NIC_INFO, Link);
|
||||
|
@ -763,6 +762,7 @@ IScsiConvertAttemptConfigDataToIfrNvDataByKeyword (
|
|||
*(IfrNvData->ISCSIMacAddr + StrLen (IfrNvData->ISCSIMacAddr)) = L'/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Convert the IFR data to iSCSI configuration data.
|
||||
|
|
|
@ -162,7 +162,7 @@ typedef struct {
|
|||
CHAR16 ISCSIInitiatorNetmask[IP4_STR_MAX_SIZE];
|
||||
CHAR16 ISCSIInitiatorGateway[IP4_STR_MAX_SIZE];
|
||||
CHAR16 ISCSITargetName[ISCSI_NAME_MAX_SIZE];
|
||||
CHAR16 ISCSITargetIpAddress[IP_STR_MAX_SIZE];
|
||||
CHAR16 ISCSITargetIpAddress[ISCSI_TARGET_URI_MAX_SIZE];
|
||||
CHAR16 ISCSILun[ISCSI_LUN_STR_MAX_LEN];
|
||||
CHAR16 ISCSIChapUsername[ISCSI_CHAP_NAME_STORAGE];
|
||||
CHAR16 ISCSIChapSecret[ISCSI_CHAP_SECRET_STORAGE];
|
||||
|
|
Loading…
Reference in New Issue