From owner-freebsd-bugs Wed Jan 30 10:10:28 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0703137B419 for ; Wed, 30 Jan 2002 10:10:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0UIA3G36491; Wed, 30 Jan 2002 10:10:04 -0800 (PST) (envelope-from gnats) Date: Wed, 30 Jan 2002 10:10:04 -0800 (PST) Message-Id: <200201301810.g0UIA3G36491@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Serge van den Boom Subject: Re: misc/34390: incorrect error with getaddrinfo with hostname+AI_NUMERICHOST Reply-To: Serge van den Boom Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/34390; it has been noted by GNATS. From: Serge van den Boom To: Peter Pentchev Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: misc/34390: incorrect error with getaddrinfo with hostname+AI_NUMERICHOST Date: Wed, 30 Jan 2002 19:02:33 +0100 (CET) On Wed, 30 Jan 2002, Serge van den Boom wrote: > On Wed, 30 Jan 2002, Peter Pentchev wrote: > > On Tue, Jan 29, 2002 at 12:06:36AM +0100, Serge van den Boom wrote: > > > >Number: 34390 > > > >Category: misc > > > >Synopsis: incorrect error with getaddrinfo with hostname+AI_NUMERICHOST > > > >Originator: Serge van den Boom > > > >Release: FreeBSD 4.5-RC i386 > > > > > >Description: > > > When using getaddrinfo with AI_NUMERICHOST set in the options field of > > > the hints structure, and passing a non-numeric host name, EAI_NODATA > > > is returned. RFC 2553 requires an error code of EAI_NONAME in that > > > case though, and this is what the getaddrinfo man page also says (in > > > fact it's the same text). > > Can you try the following patch? It seems to fix the problem for me. > > It is made against RELENG_4 sources, but applies cleanly to -CURRENT, too. > Actually, I can't. I don't have root access on the machine I encountered the > bug on, or any other 4.5-RC machines. > But I've contacted an administrator and he'll apply the patch later today. > So I'll get back to you then. Verified. It works (no surprise there). Greetings, Serge To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message