]> git.ipfire.org Git - thirdparty/strongswan.git/commit - src/libcharon/sa/trap_manager.c
trap-manager: Changed how acquires we acted on are tracked
authorTobias Brunner <tobias@strongswan.org>
Thu, 9 Jul 2015 10:00:56 +0000 (12:00 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 27 Jul 2015 11:50:09 +0000 (13:50 +0200)
commita229bdce625338117966a53efd0475b2c7c84566
tree16a27e310b00fab0475de30de19bf5c6d410ff2b
parent773fcb1605d413997450b59d114a1c035910cc58
trap-manager: Changed how acquires we acted on are tracked

This fixes potential race conditions in case complete() or flush() is
executed before or concurrently with a thread that handles an acquire.
It will also simplify tracking multiple acquires created for the same
trap policy in the future.

Also fixes the behavior in some error situations.
src/libcharon/sa/trap_manager.c