diff options
author | Christophe Gouault <christophe.gouault@6wind.com> | 2014-04-08 17:11:13 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-04-24 17:54:15 +0200 |
commit | 2cbaa632951dd662e26e63299d8049c0d2bed8b1 (patch) | |
tree | 30b874666081322b7efe8f737f80eae875b078b9 /src/libcharon/plugins/load_tester/load_tester_config.h | |
parent | a68454bd68221490e5504969b5378a1e86f204de (diff) | |
download | strongswan-2cbaa632951dd662e26e63299d8049c0d2bed8b1.tar.bz2 strongswan-2cbaa632951dd662e26e63299d8049c0d2bed8b1.tar.xz |
load-tester: Fix race condition issuing same identity
Due to an unprotected incrementation, two load-tester initiators occasionally
use the same identifier under high load. The responder typically drops one of
the connections.
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_config.h')
0 files changed, 0 insertions, 0 deletions