mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Mtftp4Dxe: Fix invalid configuration of MTFTP local port.
This patch is to fix the invalid setting of MTFTP local port. The issue can be reproduced by tftp shell command by using [-l port] option. Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
parent
d2f1f6423b
commit
fc5b790b39
|
@ -311,7 +311,7 @@ Mtftp4ConfigUnicastPort (
|
|||
UdpConfig.UseDefaultAddress = Config->UseDefaultSetting;
|
||||
IP4_COPY_ADDRESS (&UdpConfig.StationAddress, &Config->StationIp);
|
||||
IP4_COPY_ADDRESS (&UdpConfig.SubnetMask, &Config->SubnetMask);
|
||||
UdpConfig.StationPort = 0;
|
||||
UdpConfig.StationPort = Config->LocalPort;
|
||||
UdpConfig.RemotePort = 0;
|
||||
|
||||
Ip = HTONL (Instance->ServerIp);
|
||||
|
|
Loading…
Reference in New Issue