aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/authenticators/eap_authenticator.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-04-17 17:44:10 +0200
committerTobias Brunner <tobias@strongswan.org>2012-04-18 18:50:14 +0200
commit7e84c4275c03b1aaf3c4a2077b08f67173fad382 (patch)
tree0972d8a15b4252cad0891dee635cbdae09e8d9bc /src/libcharon/sa/authenticators/eap_authenticator.c
parentebc1ffe45100d31ca0094fb407747a0ad995bf8e (diff)
downloadstrongswan-7e84c4275c03b1aaf3c4a2077b08f67173fad382.tar.bz2
strongswan-7e84c4275c03b1aaf3c4a2077b08f67173fad382.tar.xz
Removed auth_cfg_t.replace_value() and replaced usages with add().
replace_value() was used to replace identities. Since for these the latest is now returned by get(), adding the new identity with add() is sufficient.
Diffstat (limited to 'src/libcharon/sa/authenticators/eap_authenticator.c')
-rw-r--r--src/libcharon/sa/authenticators/eap_authenticator.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libcharon/sa/authenticators/eap_authenticator.c b/src/libcharon/sa/authenticators/eap_authenticator.c
index 7284dfc8a..5c8f0b6ce 100644
--- a/src/libcharon/sa/authenticators/eap_authenticator.c
+++ b/src/libcharon/sa/authenticators/eap_authenticator.c
@@ -223,10 +223,7 @@ static void replace_eap_identity(private_eap_authenticator_t *this)
eap_identity = this->eap_identity->clone(this->eap_identity);
cfg = this->ike_sa->get_auth_cfg(this->ike_sa, FALSE);
- if (!cfg->replace_value(cfg, AUTH_RULE_EAP_IDENTITY, eap_identity))
- {
- eap_identity->destroy(eap_identity);
- }
+ cfg->add(cfg, AUTH_RULE_EAP_IDENTITY, eap_identity);
}
/**