Date: Wed, 7 Jun 2000 12:00:03 -0700 (PDT) From: Ruslan Ermilov <ru@sunbay.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/19096: core dump using ftp and telnet Message-ID: <200006071900.MAA18667@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/19096; it has been noted by GNATS. From: Ruslan Ermilov <ru@sunbay.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006071900.MAA18667>