gcc/c++tools
Iain Sandoe 41f01c9715 c++tools: Work around a BSD bug in getaddrinfo().
Some versions of the BSD getaddrinfo() call do not work with the specific
input of "0" for the servname entry (a segv results).  Since we are making
the call with a dummy port number, the value is actually no important, other
than it should be in range.  Work around the BSD bug by using "1" instead.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

c++tools/ChangeLog:

	* server.cc (accept_from): Use "1" as the dummy port number.
2022-03-18 15:23:49 +00:00
..
ChangeLog
config.h.in
configure
configure.ac Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in Update copyright years. 2022-01-03 10:42:10 +01:00
resolver.cc Update copyright years. 2022-01-03 10:42:10 +01:00
resolver.h Update copyright years. 2022-01-03 10:42:10 +01:00
server.cc c++tools: Work around a BSD bug in getaddrinfo(). 2022-03-18 15:23:49 +00:00