From owner-freebsd-bugs Wed Jun 7 12: 0: 9 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5867637BE3C for ; Wed, 7 Jun 2000 12:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA18667; Wed, 7 Jun 2000 12:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Wed, 7 Jun 2000 12:00:03 -0700 (PDT) Message-Id: <200006071900.MAA18667@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/19096: core dump using ftp and telnet Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/19096; it has been noted by GNATS. From: Ruslan Ermilov To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/19096: core dump using ftp and telnet Date: Wed, 7 Jun 2000 21:57:29 +0300 On Wed, Jun 07, 2000 at 11:20:01AM -0700, Ruslan Ermilov wrote: > > On Wed, Jun 07, 2000 at 09:50:03AM -0700, liveevil@tasam.com wrote: > > > > Number: 19096 > > Synopsis: core dump using ftp and telnet > > Severity: non-critical > > Priority: low > > Release: 4.0-STABLE FreeBSD 4.0-STABLE > > > It turns out to be the problem with libc. > Maybe, _hpcopy() should check for value of *errp??? > Something like this should be done (IN ALL PLACES): Index: name6.c =================================================================== RCS file: /home/ncvs/src/lib/libc/net/name6.c,v retrieving revision 1.6.2.3 diff -u -r1.6.2.3 name6.c --- name6.c 2000/05/13 18:46:13 1.6.2.3 +++ name6.c 2000/06/07 18:55:12 @@ -1349,7 +1349,8 @@ hpbuf.h_length = ADDRLEN(hpbuf.h_addrtype); hp = getanswer(&buf, ret, name, rtl->rtl_type, &hpbuf, errp); - hp = _hpcopy(&hpbuf, errp); + if (hp != NULL) + hp = _hpcopy(&hpbuf, errp); hp0 = _hpmerge(hp0, hp, errp); } } Which gives the correct behaviour: Script started on Wed Jun 7 21:53:48 2000 ftp: *.exitmoney.com: Non-recoverable failure in name resolution ftp> quit Script done on Wed Jun 7 21:53:50 2000 -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message