diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-27 14:45:23 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-27 14:45:23 +0000 |
commit | fb1995477c407b9d415f5a26f8da6132c45c518e (patch) | |
tree | 0e9c52097f924ea06c9a2dafd1f6956b119da0d5 /kerberosIV | |
parent | 5e7c546f51ba932d1c019f64489c6664456e5784 (diff) |
Fix a problem with how TDB timeouts were used in pfkeyv2.
When we allocated a tdb we did a timeout_add before a timeout_set.
This was a problem in itself, but it shouldn't hurt too much.
What did hurt was that we did a timeout_set after the timeout_add,
timeout_set marked the timeout as not being on the timeout list and if we
did a timeout_del (or timeout_add) later (before the timeout fired) we
ended up with a chunk of freed memory on the timeout queue or maybe
even dangling pointers (or a circular list).
This should probably cure the timeout queue corruption some people were
seeing lately.
Diffstat (limited to 'kerberosIV')
0 files changed, 0 insertions, 0 deletions