summaryrefslogtreecommitdiff
path: root/games/hack/hack.vault.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2010-01-14 00:00:06 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2010-01-14 00:00:06 +0000
commit7c83f09f650529b91aee2f7ad55bce98a39c00ad (patch)
tree043588ff479231f3359f0c0131bd4ceeaef5ed64 /games/hack/hack.vault.c
parent88c1df0d61ad8f034c4fec60a06b220b7cafd16a (diff)
in pf_create_state, when we fixed the leaks, we were a bit too trigger
happy and went to use after free instead. ryan and I think we found the reason - just freeing that state keys in the error path is wrong as well, since pf_state_key_setup could have found existing, identical state keys and linked our state to these. if we now free them the other state that hung of these state keys would point back to the freed state keys. so instead of manually trying to free the state keys just call pf_state_key_detach which has all the magic checks. with and ok ryan
Diffstat (limited to 'games/hack/hack.vault.c')
0 files changed, 0 insertions, 0 deletions