mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
Enumerate correct list while removing nonce_gens, fix deregistration
This commit is contained in:
parent
32400cd91a
commit
75d4e01c4a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user