freebsd-dev/usr.sbin/ypserv
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
..
Makefile Big round o changes: 1996-12-22 22:30:58 +00:00
Makefile.yp Eek! When I added the YP_INTERDOMAIN and YP_SECURE support, I documented 1996-11-15 18:01:59 +00:00
yp_access.c Add support for handling the YP_SECURE and YP_INTERDOMAIN keys from 1996-10-24 18:58:26 +00:00
yp_dblookup.c Big round o changes: 1996-12-22 22:30:58 +00:00
yp_dnslookup.c Fix some bugs: 1996-12-24 02:44:52 +00:00
yp_error.c Small touch-ups -- no functional changes. 1996-05-31 16:01:51 +00:00
yp_extern.h Big round o changes: 1996-12-22 22:30:58 +00:00
yp_main.c Big round o changes: 1996-12-22 22:30:58 +00:00
yp_server.c Big round o changes: 1996-12-22 22:30:58 +00:00
yp_svc_udp.c Big round o changes: 1996-12-22 22:30:58 +00:00
ypserv.8 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00