From: Matthias Dieter Wallnöfer Date: Thu, 8 Jul 2010 20:04:23 +0000 (+0200) Subject: ldb:common/ldb_dn.c - "ldb_dn_get_parent" - no need to manipulate the real DN X-Git-Url: http://git.samba.org/?p=kamenim%2Fsamba.git;a=commitdiff_plain;h=514c59656152742c0c73ce65e0778f000cdd1437 ldb:common/ldb_dn.c - "ldb_dn_get_parent" - no need to manipulate the real DN Since the parent DN is a duplication of the passed DN parameter. --- diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index f81f1a4d93..847aa02f6f 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -1698,12 +1698,6 @@ struct ldb_dn *ldb_dn_get_parent(void *mem_ctx, struct ldb_dn *dn) return NULL; } - /* Wipe the ext_linearized DN, - * the GUID and SID are almost certainly no longer valid */ - LDB_FREE(dn->ext_linearized); - LDB_FREE(dn->ext_components); - dn->ext_comp_num = 0; - return new_dn; }