summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-06-14 21:52:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:11 -0500
commitc2747479e04761d86f0de4aa90b4d793856d0fb7 (patch)
tree41d2ea3b11204379c93893b539c93f552f647578 /source4/lib/ldb/common
parent9189833a8753a723a8b8d0af9c8b096571b06a84 (diff)
downloadsamba-c2747479e04761d86f0de4aa90b4d793856d0fb7.tar.gz
samba-c2747479e04761d86f0de4aa90b4d793856d0fb7.tar.bz2
samba-c2747479e04761d86f0de4aa90b4d793856d0fb7.zip
r7586: ldb_sqlite3 making progress. add and search have indicated a willingness to operate properly on initial testing
(This used to be commit 86ca8639e0ddc2525f8ed0ca9879d9f98c0cd00e)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_explode_dn.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/ldb/common/ldb_explode_dn.c b/source4/lib/ldb/common/ldb_explode_dn.c
index cacd9862b6..5cea4424b0 100644
--- a/source4/lib/ldb/common/ldb_explode_dn.c
+++ b/source4/lib/ldb/common/ldb_explode_dn.c
@@ -382,6 +382,9 @@ ldb_explode_dn(void * mem_ctx,
goto failed;
}
+ /* Save the pointer to the beginning of the string */
+ component->component = dest;
+
/* copy each of the attributes to the normalized component */
for (i = 0; i < component->attr_num; i++) {
if (i != 0) {
@@ -395,9 +398,6 @@ ldb_explode_dn(void * mem_ctx,
dest += size;
}
- /* Save the just-generated string */
- component->component = dest;
-
ldb_debug(mem_ctx,
LDB_DEBUG_TRACE,
"component: [%s]\n", component->component);
@@ -438,6 +438,9 @@ ldb_explode_dn(void * mem_ctx,
goto failed;
}
+ /* Save the pointer to the beginning of the */
+ dn->dn = dest;
+
/* copy the normalized components into the DN */
for (i = 0; i < dn->comp_num; i++) {
@@ -455,9 +458,6 @@ ldb_explode_dn(void * mem_ctx,
dest += size;
}
- /* Save the just-generated string */
- dn->dn = dest;
-
ldb_debug(mem_ctx, LDB_DEBUG_TRACE, "dn: [%s]\n", dn->dn);
/* we don't need the copy of the DN any more */