]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
NetworkPkg: Fix incorrect parameter check in PXE.Mtftp() function.
authorFu Siyuan <siyuan.fu@intel.com>
Tue, 9 Jan 2018 07:08:57 +0000 (15:08 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Mon, 15 Jan 2018 10:02:01 +0000 (18:02 +0800)
commitcf9ff46b088a1df9c8ab81f31ef9606826ca7977
treebffb5bdeeb626aadbbe9b4f300935a2090915ab5
parentd02a848e3246213edddb69cfb2360830eb058ab3
NetworkPkg: Fix incorrect parameter check in PXE.Mtftp() function.

According to UEFI spec, the PXE.Mtftp() should return invalid parameter if the
BufferPtr parameter was NULL and the DontUseBuffer parameter was FALSE.
The DontUseBuffer is only used when perform MTFTP/TFTP read operation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c