From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13014 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Friedt Newsgroups: gmane.linux.lib.musl.general Subject: Re: getaddrinfo(3) / AI_ADDRCONFIG Date: Tue, 10 Jul 2018 19:42:53 -0400 Message-ID: References: <20180709223805.GS1392@brightrain.aerifal.cx> <20180710005943.GT1392@brightrain.aerifal.cx> <20180710150854.GU1392@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1531266075 20818 195.159.176.226 (10 Jul 2018 23:41:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2018 23:41:15 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-13030-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 11 01:41:11 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fd2Fr-0005Jf-Dq for gllmg-musl@m.gmane.org; Wed, 11 Jul 2018 01:41:11 +0200 Original-Received: (qmail 24551 invoked by uid 550); 10 Jul 2018 23:43:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 24533 invoked from network); 10 Jul 2018 23:43:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TBRr4iqczKj9eGb+lnjDm7wjmw3s5kvDsc/yXWso0kw=; b=p7caOFdPEEvZlVuUfpR2pWxD1rEy9QZN9yuw3G65GCNnEmwfwqC+s9OSgf04TOddo+ LKZP06XwR3+ZqdEqTvCfqkpkL8TnpGCY8Y9cdT2aNObtgQ8ZGH+zLM7p0VlBZqm37JVb YL5rJU8omEgIf1G6J7j5d6naxGf5wwBZ8lfEEjng4oHKwmInQO+XeYsEA0fK3XzRO4ZR 4ji47bi2QcxrVmpLIC/59uTaNr9P9OOBIHwHRJzhXl6P1ZiO3iqwg/EpQi6cEVsiAZEL mTpI2rhQgan0byj4wuBw1DGM6bAEdvV6JYoaKnjzZQEymJDstKxb92AE4zMQFXoqQtL5 M7cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TBRr4iqczKj9eGb+lnjDm7wjmw3s5kvDsc/yXWso0kw=; b=igPeTE2rZcJo8tjpORJdIuaVmcvouSei8k0gnr7setH5kiQBoSms7TSvQrxki+W0ue bGP/RcqG94/OMH+OkNS9DO9FXbzNeZ4hhR3JBwTjrPaMHSSS6hR9Jsjw91jGzVnnWk/A Q0PuEW1i8mpvKuevhm8Z0KKf2j+iVieHR7TZeZ3L5AeEv1sniLo+jDzYayS71TjmRSIx gBF9DZ/eZln60/cektfHdUOizhGPQwuG5nJGMLOTI+EUF4ObAbpiGNAdRvLxrc1024pJ PNInMGybY4LYFVBkAsZpbdHqz0peSvzeTdt/qfBtO+5KIAN5foxY9fzKs8MZy6gcZdq3 bA1A== X-Gm-Message-State: APt69E1sKmc2XUZFyq1jbi6cSUEujaAoX4U+0egEN5bHHBPYjFK4E4tI CW75vp2xxIWV650ALhx2UEU8murMNd1ppEbk7DpWrA== X-Google-Smtp-Source: AAOMgpcBE7I24BegwRBYpRmZAXP1wgjT3LF1TUGNQQDLxItbDNHGP7W5+OOUNAe1mTofp9WGFiYYFKsDiP/3dI6vw/I= X-Received: by 2002:aca:33d5:: with SMTP id z204-v6mr28063113oiz.184.1531266187756; Tue, 10 Jul 2018 16:43:07 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:13014 Archived-At: On Tue, Jul 10, 2018 at 7:30 PM Christopher Friedt wrote: > [1] https://patch-diff.githubusercontent.com/raw/cfriedt/musl/pull/1.diff The one shortcoming of that patch, that I can tell, is when nais == 0 directly before the end of gataddrinfo. If that is the case, it should likely free the allocated memory and then return EAI_FAIL. I'll update my branch.