aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/attr/attr_provider.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-04-21 13:21:26 +0200
committerMartin Willi <martin@revosec.ch>2011-04-21 13:35:31 +0200
commit5b0bcfb1fc4aabb6535db91e70f7f262328e664f (patch)
tree000c5588b5da0e498f74e251cd0e1aeaa6d597a9 /src/libhydra/plugins/attr/attr_provider.c
parentfdead26ffe1da8501a6ff5e0639a6f44c723e763 (diff)
downloadstrongswan-5b0bcfb1fc4aabb6535db91e70f7f262328e664f.tar.bz2
strongswan-5b0bcfb1fc4aabb6535db91e70f7f262328e664f.tar.xz
Revert alloc_str changes
Diffstat (limited to 'src/libhydra/plugins/attr/attr_provider.c')
-rw-r--r--src/libhydra/plugins/attr/attr_provider.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libhydra/plugins/attr/attr_provider.c b/src/libhydra/plugins/attr/attr_provider.c
index 2dd67cb72..44242c259 100644
--- a/src/libhydra/plugins/attr/attr_provider.c
+++ b/src/libhydra/plugins/attr/attr_provider.c
@@ -109,8 +109,8 @@ static void add_legacy_entry(private_attr_provider_t *this, char *key, int nr,
host_t *host;
char *str;
- str = lib->settings->alloc_str(lib->settings, "%s.%s%d", NULL,
- hydra->daemon, key, nr);
+ str = lib->settings->get_str(lib->settings, "%s.%s%d", NULL, hydra->daemon,
+ key, nr);
if (str)
{
host = host_create_from_string(str, 0);
@@ -139,7 +139,6 @@ static void add_legacy_entry(private_attr_provider_t *this, char *key, int nr,
configuration_attribute_type_names, entry->type, &entry->value);
this->attributes->insert_last(this->attributes, entry);
}
- free(str);
}
}