From: Martin Willi Date: Mon, 21 May 2012 10:28:01 +0000 (+0200) Subject: Enumerate correct list while removing nonce_gens, fix deregistration X-Git-Tag: 5.0.0~244 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75d4e01c4a0739bb580664728189b549f20ff940;p=thirdparty%2Fstrongswan.git Enumerate correct list while removing nonce_gens, fix deregistration --- diff --git a/src/libstrongswan/crypto/crypto_factory.c b/src/libstrongswan/crypto/crypto_factory.c index bd4e05c38d..d368ae3a00 100644 --- a/src/libstrongswan/crypto/crypto_factory.c +++ b/src/libstrongswan/crypto/crypto_factory.c @@ -657,7 +657,7 @@ METHOD(crypto_factory_t, remove_nonce_gen, void, enumerator_t *enumerator; this->lock->write_lock(this->lock); - enumerator = this->nonce_gens->create_enumerator(this->rngs); + enumerator = this->nonce_gens->create_enumerator(this->nonce_gens); while (enumerator->enumerate(enumerator, &entry)) { if (entry->create_nonce_gen == create)