Enumerate correct list while removing nonce_gens, fix deregistration

This commit is contained in:
Martin Willi 2012-05-21 12:28:01 +02:00
parent 32400cd91a
commit 75d4e01c4a

View File

@ -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)