FreeBSD src
Go to file
Bill Paul 926f037af9 Fix some bugs:
- Don't dereference a NULL hostent pointer (if T_PTR lookup fails).

- Today I asked myself: "Self, you wrote this nifty async resolver
  that does a great job handling delayed replies to clients using
  the UDP transport, and the yplib code in libc always uses UDP
  (except for yp_all()). But what if some dork makes a DNS lookup using
  TCP?" Being the only dork on hand at the time, I tried it and was
  enlightened. As I suspected, my transaction ID frobbing hacks cause
  fireworks if called on a TCP transport handle (duh: the structures
  are different). Fix: check the type of socket in xprt->xp_sock using
  getsockopt() and don't use svcudp_get_xid() and svcudp_set_xid() for
  anything except SOCK_DGRAM sockets. (Since accept() gives you a
  new socket for each connection, the transaction ID munging isn't
  needed for TCP anyway.)
1996-12-24 02:44:52 +00:00
bin Oops, it needs little more caulk to get it right. 1996-12-23 22:29:03 +00:00
contrib Ay, merge from RELENG_2_2. Back out the "moving HEAD" fix. 1996-12-19 08:55:10 +00:00
eBones Fix a cosmetic bug that has bothered me for ages. :-) 1996-12-21 06:21:16 +00:00
etc Add commented out samples on how to activate the compat libs during build. 1996-12-23 05:17:09 +00:00
games comma police for section SEE ALSO 1996-12-22 23:17:39 +00:00
gnu Remove a couple of private malloc() implementations, one of which 1996-12-23 20:21:35 +00:00
include
lib Make the __dns_getanswer() wrapper work right. For the newer versions 1996-12-24 02:10:24 +00:00
libexec Change declaration of yp_errno from int to enum ypstat so that it 1996-12-23 18:15:41 +00:00
lkm
release Bring these up-to-date with Peter's compat distribution changes. 1996-12-24 00:23:43 +00:00
sbin comma typos 1996-12-23 23:09:55 +00:00
secure
share Added kernelopts.sgml to SRCS. 1996-12-23 21:30:52 +00:00
sys Use breakpoint() instead of Debugger() in siointr1(). Debugger() doesn't 1996-12-23 19:57:33 +00:00
tools
usr.bin comma typos 1996-12-23 23:09:55 +00:00
usr.sbin Fix some bugs: 1996-12-24 02:44:52 +00:00
COPYRIGHT
Makefile Add comment on -DALLLANG. 1996-12-20 08:18:47 +00:00