aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/authenticators/eap_authenticator.c
diff options
context:
space:
mode:
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);
}
/**