diff options
author | Christophe Gouault <christophe.gouault@6wind.com> | 2014-04-08 17:11:14 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-04-24 17:54:15 +0200 |
commit | 7b08063e70d916b16f1de2dba22110a92f7ff598 (patch) | |
tree | ee68d1dde1a78f0aa6f7d0965ec1bd04b9274c02 /src/libcharon/plugins/load_tester/load_tester_control.c | |
parent | 2cbaa632951dd662e26e63299d8049c0d2bed8b1 (diff) | |
download | strongswan-7b08063e70d916b16f1de2dba22110a92f7ff598.tar.bz2 strongswan-7b08063e70d916b16f1de2dba22110a92f7ff598.tar.xz |
load-tester: Fix race condition issuing same SPI
Due to an unprotected incrementation, two load-tester initiators occasionally
use the same SPI under high load, and hence generate 2 IPsec SAs with the same
identifier. The responder IPsec stack will refuse to configure the second SA.
Use an atomic incrementation to avoid this race condition.
Signed-off-by: Christophe Gouault <christophe.gouault@6wind.com>
Diffstat (limited to 'src/libcharon/plugins/load_tester/load_tester_control.c')
0 files changed, 0 insertions, 0 deletions