From owner-freebsd-bugs Fri Nov 22 10:51:47 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA09883 for bugs-outgoing; Fri, 22 Nov 1996 10:51:47 -0800 (PST) Received: (from fenner@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA09854; Fri, 22 Nov 1996 10:51:29 -0800 (PST) Date: Fri, 22 Nov 1996 10:51:29 -0800 (PST) From: Bill Fenner Message-Id: <199611221851.KAA09854@freefall.freebsd.org> To: mhugo@dataphone.se, fenner, freebsd-bugs Subject: Re: misc/2083 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Resolver in 2.1.6 stable State-Changed-From-To: open-closed State-Changed-By: fenner State-Changed-When: Fri Nov 22 10:44:21 PST 1996 State-Changed-Why: Fixed in rev 1.4.4.6 of src/lib/libc/net/gethostbydns.c, just moments ago. Patch attached so you don't have to wait for the sup scan. Index: gethostbydns.c =================================================================== RCS file: /home/ncvs/src/lib/libc/net/gethostbydns.c,v retrieving revision 1.4.4.5 retrieving revision 1.4.4.6 diff -c -r1.4.4.5 -r1.4.4.6 *** gethostbydns.c 1996/11/20 18:36:37 1.4.4.5 --- gethostbydns.c 1996/11/22 18:07:52 1.4.4.6 *************** *** 53,59 **** #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; ! static char rcsid[] = "$Id: gethostbydns.c,v 1.4.4.5 1996/11/20 18:36:37 pst Exp $"; #endif /* LIBC_SCCS and not lint */ #include --- 53,59 ---- #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; ! static char rcsid[] = "$Id: gethostbydns.c,v 1.4.4.6 1996/11/22 18:07:52 fenner Exp $"; #endif /* LIBC_SCCS and not lint */ #include *************** *** 391,396 **** --- 391,398 ---- h_errno = NETDB_INTERNAL; return (NULL); } + + host.h_length = INT32SZ; /* * if there aren't any dots, it could be a user-level alias.