From bcbdb8f648b0ec46a6213967a0f3c7cf488a925d Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Tue, 6 Mar 2012 16:58:06 +0100 Subject: [PATCH] LDAP config string values must be strdup'ed --- libatalk/acl/ldap_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libatalk/acl/ldap_config.c b/libatalk/acl/ldap_config.c index 6cf554a8..bd9d414b 100644 --- a/libatalk/acl/ldap_config.c +++ b/libatalk/acl/ldap_config.c @@ -48,7 +48,7 @@ int acl_ldap_readconfig(dictionary *iniconfig) *((int *)(ldap_prefs[i].pref)) = atoi(val); else /* store string as string */ - *((const char **)(ldap_prefs[i].pref)) = val; + *((const char **)(ldap_prefs[i].pref)) = strdup(val); } else { /* ok, we have string to int mapping for this pref eg. "none", "simple", "sasl" map to 0, 128, 129 */ -- 2.39.2