Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
geneC committed Feb 29, 2016
1 parent 8079602 commit 874c7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efi/udp.c
Expand Up @@ -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;
Expand Down

0 comments on commit 874c7c7

Please sign in to comment.