mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
LibC: The port numbers returned by getservby*() should be in network byte order
This commit is contained in:
parent
287a93a2a4
commit
8fcf91b030
Notes:
sideshowbarker
2024-07-18 20:27:06 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/8fcf91b030c Pull-request: https://github.com/SerenityOS/serenity/pull/6281
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
Reference in a new issue