Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 24 Sep 2015 21:04:51 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: getaddrinfo and null args

On Tue, Sep 22, 2015 at 01:40:13PM +0200, Julien Ramseier wrote:
> Hello,
> 
> According to http://pubs.opengroup.org/onlinepubs/9699919799/functions/freeaddrinfo.html:
> "The nodename and servname arguments are either null pointers or pointers
>  to null-terminated strings. One or both of these two arguments shall be supplied 
> by the application as a non-null pointer. "
> "[EAI_NONAME]
> Neither nodename nor servname were supplied. At least one of these shall be supplied."
> 
> getaddrinfo() currently accepts both nodename and servname being null.
> Following patch fixes the problem:

Thanks! Committed with minor changes for preferred style in musl.

Rich

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.