From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10513 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] fix getservby*_r result pointer value on error Date: Sat, 24 Sep 2016 01:10:45 -0400 Message-ID: <20160924051045.GB19318@brightrain.aerifal.cx> References: <20160924011007.27527-1-dsabogalcc@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1474693871 21321 195.159.176.226 (24 Sep 2016 05:11:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2016 05:11:11 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10526-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 24 07:11:06 2016 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 1bnfEo-0003vy-TH for gllmg-musl@m.gmane.org; Sat, 24 Sep 2016 07:10:59 +0200 Original-Received: (qmail 11422 invoked by uid 550); 24 Sep 2016 05:10:59 -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 11404 invoked from network); 24 Sep 2016 05:10:58 -0000 Content-Disposition: inline In-Reply-To: <20160924011007.27527-1-dsabogalcc@gmail.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10513 Archived-At: On Fri, Sep 23, 2016 at 09:10:07PM -0400, Daniel Sabogal wrote: > this is a clone of the fix to the gethostby*_r functions in > commit fe82bb9b921be34370e6b71a1c6f062c20999ae0. the man pages > document that the getservby*_r functions set this pointer to > NULL if there was an error or if no record was found. > --- > src/network/getservbyname_r.c | 2 ++ > src/network/getservbyport_r.c | 1 + > 2 files changed, 3 insertions(+) Applied -- thanks. Rich