From c2747479e04761d86f0de4aa90b4d793856d0fb7 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Tue, 14 Jun 2005 21:52:35 +0000 Subject: r7586: ldb_sqlite3 making progress. add and search have indicated a willingness to operate properly on initial testing (This used to be commit 86ca8639e0ddc2525f8ed0ca9879d9f98c0cd00e) --- source4/lib/ldb/common/ldb_explode_dn.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/lib/ldb/common') 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 */ -- cgit