summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-11-07 12:07:06 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-12 16:34:07 +1100
commit6fd6dc10897763670bf116746a6d8c2041b2bacd (patch)
treec409daee67a6de44f5f6e3f49a4e8637d298fb97 /source4/dsdb/common
parent4e2b4be9d3bd406a303b74c8d5ebd56714a337ae (diff)
downloadsamba-6fd6dc10897763670bf116746a6d8c2041b2bacd.tar.gz
samba-6fd6dc10897763670bf116746a6d8c2041b2bacd.tar.bz2
samba-6fd6dc10897763670bf116746a6d8c2041b2bacd.zip
s4:dsdb Cosmetic fixes found by metze in review of dsdb_dn changes
These changes include reworking the code to call ldb_module_get_ctx() less often (avoid the function calls, particularly during the step into a complex function). Andrew Bartlett
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/dsdb_dn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/common/dsdb_dn.c b/source4/dsdb/common/dsdb_dn.c
index 6c20d09910..dbc63a93be 100644
--- a/source4/dsdb/common/dsdb_dn.c
+++ b/source4/dsdb/common/dsdb_dn.c
@@ -63,7 +63,8 @@ static struct dsdb_dn *dsdb_dn_construct_internal(TALLOC_CTX *mem_ctx,
struct dsdb_dn *dsdb_dn_construct(TALLOC_CTX *mem_ctx, struct ldb_dn *dn, DATA_BLOB extra_part,
const char *oid)
{
- return dsdb_dn_construct_internal(mem_ctx, dn, extra_part, dsdb_dn_oid_to_format(oid), oid);
+ enum dsdb_dn_format dn_format = dsdb_dn_oid_to_format(oid);
+ return dsdb_dn_construct_internal(mem_ctx, dn, extra_part, dn_format, oid);
}
struct dsdb_dn *dsdb_dn_parse(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,