]> git.sur5r.net Git - openldap/commitdiff
Duplicate language tag to avoid double free
authorKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jun 2000 16:05:37 +0000 (16:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jun 2000 16:05:37 +0000 (16:05 +0000)
servers/slapd/ad.c

index 9a844259a826ca793989a96378f01ee61e53fde2..96078b257d717812018a68503aba0f76674acfdc 100644 (file)
@@ -149,7 +149,7 @@ int slap_bv2ad(
                                goto done;
                        }
 
-                       desc.ad_lang = tokens[i];
+                       desc.ad_lang = ch_strdup( tokens[i] );
 
                        /* normalize to all lower case, it's easy */
                        ldap_pvt_str2lower( desc.ad_lang );