aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2016-02-29 10:12:04 -0500
committerGene Cumm <gene.cumm@gmail.com>2016-02-29 10:12:04 -0500
commit874c7c79d8ab81d8add5791355bb41f12c1d22bc (patch)
treea451982321db0b89fb6c8ec36ce15884e7d46c7d
parent8079602cfd8b9e52091a900ce500a2a2e4c90f00 (diff)
downloadsyslinux-874c7c79d8ab81d8add5791355bb41f12c1d22bc.tar.gz
syslinux-874c7c79d8ab81d8add5791355bb41f12c1d22bc.tar.xz
syslinux-874c7c79d8ab81d8add5791355bb41f12c1d22bc.zip
efi/udp: correct typo of SubnetMask
Used wrong variable. Reported-By: Patrick Masotta <masottaus@yahoo.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--efi/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi/udp.c b/efi/udp.c
index 61397ed3..1088f470 100644
--- a/efi/udp.c
+++ b/efi/udp.c
@@ -397,7 +397,7 @@ void core_udp_sendto(struct pxe_pvt_inode *socket, const void *data,
} else {
udata.UseDefaultAddress = FALSE;
memcpy(&udata.StationAddress, &IPInfo.myip, sizeof(IPInfo.myip));
- memcpy(&udata.StationAddress, &IPInfo.netmask, sizeof(IPInfo.netmask));
+ memcpy(&udata.SubnetMask, &IPInfo.netmask, sizeof(IPInfo.netmask));
}
memcpy(&udata.RemoteAddress, &ip, sizeof(ip));
udata.RemotePort = port;