From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8566 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: getaddrinfo usage with wrong ip family Date: Thu, 24 Sep 2015 21:48:56 -0400 Message-ID: <20150925014856.GM17773@brightrain.aerifal.cx> References: <06898546-AC9C-40F0-A2F5-2F1CC02E185C@gmail.com> <20150922151625.GX17773@brightrain.aerifal.cx> <71B72D33-A1D4-4B23-BFEB-6BFA01DF7523@gmail.com> <20150924105901.GI10551@port70.net> <418CD580-74BC-4B3E-BA64-CB3AEA305843@gmail.com> <20150924153904.GK17773@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1443145754 13987 80.91.229.3 (25 Sep 2015 01:49:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 01:49:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8578-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 25 03:49:14 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 1ZfI8O-0002Be-9b for gllmg-musl@m.gmane.org; Fri, 25 Sep 2015 03:49:12 +0200 Original-Received: (qmail 4056 invoked by uid 550); 25 Sep 2015 01:49:09 -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 4031 invoked from network); 25 Sep 2015 01:49:08 -0000 Content-Disposition: inline In-Reply-To: <20150924153904.GK17773@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8566 Archived-At: On Thu, Sep 24, 2015 at 11:39:04AM -0400, Rich Felker wrote: > On Thu, Sep 24, 2015 at 05:11:03PM +0200, Julien Ramseier wrote: > > > > > Le 24 sept. 2015 à 12:59, Szabolcs Nagy a écrit : > > > > > > * Julien Ramseier [2015-09-24 12:27:22 +0200]: > > >>> Le 22 sept. 2015 à 17:16, Rich Felker a écrit : > > >>> > > >>> Another approach might be having __lookup_numeric always parse with > > >>> AF_UNSPEC, but return error rather than 0 results if the resulting > > >>> family does not match the requested family. > > >> > > >> This seems the simplest solution in the meantime. > > >> > > >> Here???s the patch I applied to my trunk. > > >> > > > > > > forgot to attach the patch? > > > > No, but maybe my mail client screwed it up. > > It was there, just deeply embedded in multiple layers of MIME. The patch conflicted with commit cb1c88d42b0ee5e950d85e933c6eb6ecb8175e1d, but I've adapted and applied it. Let me know if you see anything I did wrong. Rich