From: Mark Wielaard <firstname.lastname@example.org>
Subject: Re: [PATCH] debuginfod: Always request servname from getnameinfo for conninfo.
Date: Sun, 15 May 2022 00:15:01 +0200 [thread overview]
Message-ID: <YoAp5bpTD97WT7MZ@wildebeest.org> (raw)
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.
prev parent reply other threads:[~2022-05-14 22:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-09 21:10 Mark Wielaard
2022-05-14 22:15 ` Mark Wielaard [this message]
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).