mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 23:31:39 +00:00
udp_open() takes ports in network-endian order.
This commit is contained in:
parent
13dbf5494d
commit
0768670fd8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user