summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getenv.c
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2001-03-04 21:28:40 +0000
committerbmilekic <bmilekic@FreeBSD.org>2001-03-04 21:28:40 +0000
commit88ef993e5e9392eb8720450f6b48b3bd47153ca9 (patch)
tree79014b67b9421a5621b61a3097d4052c943bc7d0 /lib/libc/stdlib/getenv.c
parentea9cbc5d1870c03a5cb149268a35e49dde9f6ca9 (diff)
downloadFreeBSD-src-88ef993e5e9392eb8720450f6b48b3bd47153ca9.zip
FreeBSD-src-88ef993e5e9392eb8720450f6b48b3bd47153ca9.tar.gz
During a flood, we don't call rtfree(), but we remove the entry ourselves.
However, if the RTF_DELCLONE and RTF_WASCLONED condition passes, but the ref count is > 1, we won't decrement the count at all. This could lead to route entries never being deleted. Here, we call rtfree() not only if the initial two conditions fail, but also if the ref count is > 1 (and we therefore don't immediately delete the route, but let rtfree() handle it). This is an urgent MFC candidate. Thanks go to Mike Silbersack for the fix, once again. :-) Submitted by: Mike Silbersack <silby@silby.com>
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud