Re: [PATCH] debuginfod: Always request servname from getnameinfo for conninfo.

2022-05-14 Thread Mark Wielaard
Hi, On Mon, May 09, 2022 at 11:10:44PM +0200, Mark Wielaard wrote: > When getting the connection info getnameinfo is called getting the > hostname and servname except when the sockaddr is a pure ipv6 > address. In that last case only hostname is requested. Since servname > is stack allocated and n

[PATCH] debuginfod: Always request servname from getnameinfo for conninfo.

2022-05-09 Thread Mark Wielaard
When getting the connection info getnameinfo is called getting the hostname and servname except when the sockaddr is a pure ipv6 address. In that last case only hostname is requested. Since servname is stack allocated and not initialized it might contain garbage which is then put in the log. Just a