From owner-freebsd-bugs Sat Mar 1 12:53:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA28872 for bugs-outgoing; Sat, 1 Mar 1997 12:53:11 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA28864; Sat, 1 Mar 1997 12:53:05 -0800 (PST) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <15867(2)>; Sat, 1 Mar 1997 12:52:35 PST Received: by crevenia.parc.xerox.com id <177476>; Sat, 1 Mar 1997 12:52:23 -0800 From: Bill Fenner To: freebsd-gnats-submit@freebsd.org, mpp@freebsd.org Subject: Re: bin/2584 Cc: freebsd-bugs@freebsd.org Message-Id: <97Mar1.125223pst.177476@crevenia.parc.xerox.com> Date: Sat, 1 Mar 1997 12:52:18 PST Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Actually, I think I prefer if (hp && hp->h_length == sizeof to->sin_addr) { do DNS lookup succeeded stuff } else { do DNS lookup failed stuff } since if you got back a response longer than you expect and you copy the first 4 bytes, you're likely to just have junk. I'd rather it say "host not found" than "trying 58.16.99.128". Bill