From: Tobias Brunner Date: Tue, 27 Feb 2018 09:31:49 +0000 (+0100) Subject: load-tester: Start numbering IDs from 1 again X-Git-Tag: 5.6.3dr1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53827a5fde2703b68cdf713ec12ae1e095e0fcd3;p=thirdparty%2Fstrongswan.git load-tester: Start numbering IDs from 1 again ref_get() increments the number before returning it. Fixes: 2cbaa632951d ("load-tester: Fix race condition issuing same identity") --- diff --git a/src/libcharon/plugins/load_tester/load_tester_config.c b/src/libcharon/plugins/load_tester/load_tester_config.c index 28421c212e..2c052631f9 100644 --- a/src/libcharon/plugins/load_tester/load_tester_config.c +++ b/src/libcharon/plugins/load_tester/load_tester_config.c @@ -937,7 +937,6 @@ load_tester_config_t *load_tester_config_create() .leases = hashtable_create((hashtable_hash_t)hash, (hashtable_equals_t)equals, 256), .mutex = mutex_create(MUTEX_TYPE_DEFAULT), - .num = 1, .unique_port = UNIQUE_PORT_START, );