Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZbU31OS3omM1BkMN@voyager>
Date: Sat, 27 Jan 2024 18:05:24 +0100
From: Markus Wichmann <nullplan@....net>
To: musl@...ts.openwall.com
Cc: Michał Górny <mgorny@...too.org>
Subject: Re: [Bug?] getaddrinfo() fills .ai_canonname when
 AI_CANONNAME isn't passed

Hi,

I just had a look at the POSIX specification again and noticed that it
doesn't breathe a word about the setting of .ai_canonname in case
AI_CANONNAME is not set. Nor does it say anything about .ai_canonname in
any returned structure other than the first. The case is entirely
unspecified.

Therefore your application must not make assumptions about it in that
case. The test is wrong to assume anything about .ai_canonname if
AI_CANONNAME is not set.

Ciao,
Markus

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.