git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c0cb36
)
ldb:common/ldb_dn.c - "ldb_dn_get_parent" - no need to manipulate the real DN
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Thu, 8 Jul 2010 20:04:23 +0000
(22:04 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Fri, 9 Jul 2010 07:02:44 +0000
(09:02 +0200)
Since the parent DN is a duplication of the passed DN parameter.
source4/lib/ldb/common/ldb_dn.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_dn.c
b/source4/lib/ldb/common/ldb_dn.c
index f81f1a4d932b94f26be88ebc349a4e12ddd4e7e0..847aa02f6f4152276120e3114793c9c2b51e346c 100644
(file)
--- 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;
}