[PATCH] debuginfod: Always request servname from getnameinfo for conninfo.
Mark Wielaard
mark@klomp.org
Sat May 14 22:15:01 GMT 2022
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 not initialized it might contain garbage which
> is then put in the log. Just always request both hostname and servname
> with NI_NUMERICHOST | NI_NUMERICSERV.
Pushed.
Cheers,
Mark
More information about the Elfutils-devel
mailing list