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


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

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.


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.