david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

udp_open() takes ports in network-endian order.

This commit is contained in:
Michael Brown 2006-07-19 21:56:27 +00:00
parent 13dbf5494d
commit 0768670fd8
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ struct async_operation * start_dhcp ( struct dhcp_session *dhcp ) {
- sizeof ( dhcp->xid ) ), sizeof ( dhcp->xid ));
/* Bind to local port */
if ( ( rc = udp_open ( &dhcp->udp, BOOTPC_PORT ) ) != 0 ) {
if ( ( rc = udp_open ( &dhcp->udp, htons ( BOOTPC_PORT ) ) ) != 0 ) {
async_done ( &dhcp->aop, rc );
goto out;
}