Date: Sat, 1 Mar 1997 12:52:18 PST From: Bill Fenner <fenner@parc.xerox.com> To: freebsd-gnats-submit@freebsd.org, mpp@freebsd.org Cc: freebsd-bugs@freebsd.org Subject: Re: bin/2584 Message-ID: <97Mar1.125223pst.177476@crevenia.parc.xerox.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97Mar1.125223pst.177476>