aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials
diff options
context:
space:
mode:
authorThomas Egerer <thomas.egerer@secunet.com>2014-08-28 16:04:06 +0200
committerMartin Willi <martin@revosec.ch>2014-08-29 13:22:23 +0200
commit8d80528a60f82603b495b88a348cb26130ac6f0b (patch)
tree6404952ce10b93210e9b48a9d23c4245a1c16005 /src/libstrongswan/credentials
parent51da5b920baafc795c32d6e8281ebdc0aae4540f (diff)
downloadstrongswan-8d80528a60f82603b495b88a348cb26130ac6f0b.tar.bz2
strongswan-8d80528a60f82603b495b88a348cb26130ac6f0b.tar.xz
credmgr: Fix copy and paste error in add_validator
This won't hurt as long as sets and validators are of the same class. But as soon as one of the object's class is changed this will cause either a compile error (best option), or result (most likely) in a crash. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Diffstat (limited to 'src/libstrongswan/credentials')
-rw-r--r--src/libstrongswan/credentials/credential_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/credentials/credential_manager.c b/src/libstrongswan/credentials/credential_manager.c
index 3ec0714b6..b0c8e48ba 100644
--- a/src/libstrongswan/credentials/credential_manager.c
+++ b/src/libstrongswan/credentials/credential_manager.c
@@ -1279,7 +1279,7 @@ METHOD(credential_manager_t, add_validator, void,
private_credential_manager_t *this, cert_validator_t *vdtr)
{
this->lock->write_lock(this->lock);
- this->sets->insert_last(this->validators, vdtr);
+ this->validators->insert_last(this->validators, vdtr);
this->lock->unlock(this->lock);
}