summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-25 23:19:53 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-26 23:26:33 +0100
commitc7432e49506561316f42bf0a26dd21de563c8eda (patch)
treec2bd32e2d2ba0076bd79621f10f028a4f8315626 /source4
parent4bad696f9ef3bdc3a1a9dc6b98a58d7071b994d7 (diff)
downloadsamba-c7432e49506561316f42bf0a26dd21de563c8eda.tar.gz
samba-c7432e49506561316f42bf0a26dd21de563c8eda.tar.bz2
samba-c7432e49506561316f42bf0a26dd21de563c8eda.zip
s4:ldb_dn: reset dn->ext_comp_num in ldb_dn_explode()
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index c395be2900..c5c8c2e065 100644
--- a/source4/lib/ldb/common/ldb_dn.c
+++ b/source4/lib/ldb/common/ldb_dn.c
@@ -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 */