Enumerate correct list while removing nonce_gens, fix deregistration
authorMartin Willi <martin@revosec.ch>
Mon, 21 May 2012 10:28:01 +0000 (12:28 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 21 May 2012 10:28:01 +0000 (12:28 +0200)
src/libstrongswan/crypto/crypto_factory.c

index bd4e05c..d368ae3 100644 (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)