freebsd-dev/usr.sbin/ypserv
Bill Paul 7deb24a6ae Fix a bug in the async DNS resolver that can crash ypserv. yp_prune_dnsq()
is not sane: if the TTL on a pending but unanswered query hits 0 and the
circular queue entry is removed and free()d, the for() loop may still try
to use the entry pointer (which now points at no longer valid memory).
usually, deleting only the last entry off the end of the queue worked, but
if more than one was deleted, the server would crash. I changed things a
bit so this shouldn't happen anymore.

Also arranged to call the prune routine a bit more often.
1997-07-27 03:41:53 +00:00
..
Makefile Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
Makefile.yp Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
yp_access.c Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
yp_dblookup.c Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
yp_dnslookup.c Fix a bug in the async DNS resolver that can crash ypserv. yp_prune_dnsq() 1997-07-27 03:41:53 +00:00
yp_error.c Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
yp_extern.h Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
yp_main.c compare return value from getopt against -1 rather than EOF, per the final 1997-03-31 05:11:47 +00:00
yp_server.c Fix a very stupid heap corruption bug: in ypproc_match_2_svc(), when 1997-07-21 17:39:39 +00:00
yp_svc_udp.c Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
ypserv.8 fix some typos, and some slight clean up... 1997-04-15 07:41:10 +00:00