diff options
| author | Martin Willi <martin@strongswan.org> | 2009-07-16 15:59:56 +0200 |
|---|---|---|
| committer | Martin Willi <martin@strongswan.org> | 2009-07-16 15:59:56 +0200 |
| commit | e0964e2e269546b9530937fc45723d8f2451ff02 (patch) | |
| tree | 1dee5fe9818e21ce6cae04c35b90d4afd536788a /src/charon/plugins/sql | |
| parent | 69fc7820000d4e0081ec0db1180348208c785bd4 (diff) | |
| download | strongswan-e0964e2e269546b9530937fc45723d8f2451ff02.tar.bz2 strongswan-e0964e2e269546b9530937fc45723d8f2451ff02.tar.xz | |
fixed memleak in SQL config lookup
Diffstat (limited to 'src/charon/plugins/sql')
| -rw-r--r-- | src/charon/plugins/sql/sql_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/plugins/sql/sql_config.c b/src/charon/plugins/sql/sql_config.c index 3e5efce34..e7dfe573b 100644 --- a/src/charon/plugins/sql/sql_config.c +++ b/src/charon/plugins/sql/sql_config.c @@ -295,10 +295,10 @@ static peer_cfg_t *build_peer_cfg(private_sql_config_t *this, enumerator_t *e, mediation, mediated_cfg, peer_id); auth = auth_cfg_create(); auth->add(auth, AUTH_RULE_AUTH_CLASS, auth_method); - auth->add(auth, AUTH_RULE_IDENTITY, local_id->clone(local_id)); + auth->add(auth, AUTH_RULE_IDENTITY, local_id); peer_cfg->add_auth_cfg(peer_cfg, auth, TRUE); auth = auth_cfg_create(); - auth->add(auth, AUTH_RULE_IDENTITY, remote_id->clone(remote_id)); + auth->add(auth, AUTH_RULE_IDENTITY, remote_id); if (eap_type) { auth->add(auth, AUTH_RULE_AUTH_CLASS, AUTH_CLASS_EAP); |
