mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibC: The port numbers returned by getservby*() should be in network byte order
This commit is contained in:
parent
287a93a2a4
commit
8fcf91b030
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ struct servent* getservent()
|
|||
return nullptr;
|
||||
|
||||
__getserv_buffer.s_name = const_cast<char*>(__getserv_name_buffer.characters());
|
||||
__getserv_buffer.s_port = __getserv_port_buffer;
|
||||
__getserv_buffer.s_port = htons(__getserv_port_buffer);
|
||||
__getserv_buffer.s_proto = const_cast<char*>(__getserv_protocol_buffer.characters());
|
||||
|
||||
__getserv_alias_list.clear_with_capacity();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue