summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1997-07-27 03:41:53 +0000
committerwpaul <wpaul@FreeBSD.org>1997-07-27 03:41:53 +0000
commitf62fd8fa9dee624b8a40d79571f4eb07d4740008 (patch)
tree7b8ae147e299ed705294f2dd062c727a22e05d20 /sys/vm
parent4f60b2e680df99d89501268db74f067df002d062 (diff)
downloadFreeBSD-src-f62fd8fa9dee624b8a40d79571f4eb07d4740008.zip
FreeBSD-src-f62fd8fa9dee624b8a40d79571f4eb07d4740008.tar.gz
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.
Diffstat (limited to 'sys/vm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud