From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98103 invoked by alias); 12 Sep 2017 10:00:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 98088 invoked by uid 89); 12 Sep 2017 10:00:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:347, HContent-Transfer-Encoding:8bit X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C8C43356CD Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer@redhat.com Subject: Re: [RFC][PATCH 2/4][BZ 17083] NSS: Parse zone identifier of IPv6 addresses in /etc/hosts To: =?UTF-8?Q?=c5=81ukasz_Stelmach?= References: <20170905160530.19525-1-stlman@poczta.fm> <20170905160530.19525-3-stlman@poczta.fm> Cc: libc-alpha@sourceware.org From: Florian Weimer Message-ID: <21bbf85a-5afb-1d83-ae40-a5ec98e7e061@redhat.com> Date: Tue, 12 Sep 2017 10:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170905160530.19525-3-stlman@poczta.fm> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2017-09/txt/msg00478.txt.bz2 On 09/05/2017 06:05 PM, Łukasz Stelmach wrote: > + ret = getaddrinfo(addr, NULL, &hints, &res); That makes me rather nervous due to the potential for recursion. Can we factor out the AI_NUMERICHOST code into a separate function instead? Thanks, Florian