diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-16 17:05:50 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-16 17:05:50 +0000 |
commit | d1a1169a659bd907c9eba846fcf0a994a2d0e311 (patch) | |
tree | ae013ade82ffbba45791b6781722af87c5dec18e /sys/netinet/ip_input.c | |
parent | 0756bc0c627958fb9f393fa400bf6365fcba63ec (diff) |
increasing the size of the namecache suddenly made the comment
"This makes the algorithm O(n^2), but do you think I care?"
a lot more meaningful, as discovered by krw.
fix the loop so it doesn't restart all the time, as it's not necessary.
(this was also tried years ago in rev 1.20 and reverted, but that change
also introduced pool_put before the namecache was ready to free things. we
have been freeing cache entries with pool_put for some time now, so that's
been made safe.)
ok deraadt krw
Diffstat (limited to 'sys/netinet/ip_input.c')
0 files changed, 0 insertions, 0 deletions