Re: [PATCH 1/2] libcody: Do not use a dummy port number in getaddrinfo().

2022-03-14 Thread Richard Biener via Gcc-patches
On Mon, Mar 14, 2022 at 12:16 AM Iain Sandoe via Gcc-patches wrote: > > The getaddrinfo() call requires either a non-null name for the server or > a port service / number. In the code that opens a connection we have > been calling this with a dummy port number of "0". Unfortunately this > trigge

[PATCH 1/2] libcody: Do not use a dummy port number in getaddrinfo().

2022-03-13 Thread Iain Sandoe via Gcc-patches
The getaddrinfo() call requires either a non-null name for the server or a port service / number. In the code that opens a connection we have been calling this with a dummy port number of "0". Unfortunately this triggers a crashing bug in some BSD versions (and OSes importing that code). In this