mirror of https://github.com/acidanthera/audk.git
NetworkPkg/IScsiDxe: Clear the old IFR TargetIp to avoid sharing it with other attempts.
Cc: Karunakar P <karunakarp@amiindia.co.in> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Tested-by: Karunakar P <karunakarp@amiindia.co.in> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
parent
861218740d
commit
5e146cd979
|
@ -541,6 +541,7 @@ IScsiConvertAttemptConfigDataToIfrNvData (
|
|||
IScsiIpToStr (&Ip, FALSE, IfrNvData->SubnetMask);
|
||||
CopyMem (&Ip.v4, &SessionConfigData->Gateway, sizeof (EFI_IPv4_ADDRESS));
|
||||
IScsiIpToStr (&Ip, FALSE, IfrNvData->Gateway);
|
||||
ZeroMem (IfrNvData->TargetIp, sizeof (IfrNvData->TargetIp));
|
||||
if (SessionConfigData->TargetIp.v4.Addr[0] != '\0') {
|
||||
CopyMem (&Ip.v4, &SessionConfigData->TargetIp, sizeof (EFI_IPv4_ADDRESS));
|
||||
IScsiIpToStr (&Ip, FALSE, IfrNvData->TargetIp);
|
||||
|
|
Loading…
Reference in New Issue