Cygwin: Return port number from getservent in network byte order

* netdb.cc (parse_services_line): Convert port number to network byte
        order.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2015-08-18 13:12:07 +02:00
parent f9f3d44f27
commit cb2ab5fd01
3 changed files with 11 additions and 2 deletions

View File

@@ -23,3 +23,7 @@ Bug Fixes
- Include <sys/ucontext.h> from <sys/signal.h> if compiling for POSIX.1-2008.
Addresses: https://cygwin.com/ml/cygwin/2015-08/msg00266.html
- getservent(3) returned the port number in host byte order. Change that to
network byte order as required.
Addresses: https://cygwin.com/ml/cygwin/2015-08/msg00301.html