aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/attr_sql/attr_sql_plugin.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-07-08 15:28:46 +0200
committerTobias Brunner <tobias@strongswan.org>2015-07-14 15:25:23 +0200
commit390ae7a2c2f899122e722241cb261f53dfc81b9a (patch)
tree9b7b56e176feed4d86d8b85b9892ed1ce109e34e /src/libcharon/plugins/attr_sql/attr_sql_plugin.c
parent856ea64129cdc7ee56969524d7abaaae08c22c6a (diff)
downloadstrongswan-390ae7a2c2f899122e722241cb261f53dfc81b9a.tar.bz2
strongswan-390ae7a2c2f899122e722241cb261f53dfc81b9a.tar.xz
ike-sa-manager: Safely access the RNG instance with an rwlock
Threads might still be allocating SPIs (e.g. triggered by an acquire or an inbound message) while the main thread calls flush(). If there is a context switch right after such a thread successfully checked this->rng in get_spi() and the main thread destroys the RNG instance right then, that worker thread will cause a segmentation fault when it continues and attempts to call get_bytes(). Fixes #1014.
Diffstat (limited to 'src/libcharon/plugins/attr_sql/attr_sql_plugin.c')
0 files changed, 0 insertions, 0 deletions