1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

s4:ldb_dn: reset dn->ext_comp_num in ldb_dn_explode()

metze
This commit is contained in:
Stefan Metzmacher
2010-02-25 23:19:53 +01:00
parent 4bad696f9e
commit c7432e4950

View File

@ -333,8 +333,8 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
/* make sure we free this if alloced previously before replacing */
talloc_free(dn->components);
talloc_free(dn->ext_components);
dn->ext_components = NULL;
LDB_FREE(dn->ext_components);
dn->ext_comp_num = 0;
/* in the common case we have 3 or more components */
/* make sure all components are zeroed, other functions depend on it */