From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8565 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: getaddrinfo and null args Date: Thu, 24 Sep 2015 21:04:51 -0400 Message-ID: <20150925010451.GL17773@brightrain.aerifal.cx> References: <2190F767-A1C5-4ED9-8575-FF55565B8317@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1443143113 11513 80.91.229.3 (25 Sep 2015 01:05:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 01:05:13 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8577-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 25 03:05:09 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZfHRl-0005u7-9g for gllmg-musl@m.gmane.org; Fri, 25 Sep 2015 03:05:09 +0200 Original-Received: (qmail 7761 invoked by uid 550); 25 Sep 2015 01:05:05 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7743 invoked from network); 25 Sep 2015 01:05:04 -0000 Content-Disposition: inline In-Reply-To: <2190F767-A1C5-4ED9-8575-FF55565B8317@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8565 Archived-At: 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