summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-07-28 08:02:18 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-07-28 08:02:18 +1000
commit5971fd6b9c7520456c30d8989c346d97b28c801d (patch)
treec23b4475abe321117ed95a1da65dc354b40527e0 /source4/dsdb
parent72d2bea916c19405f4fa996b7f781d73e3ee87c8 (diff)
downloadsamba-5971fd6b9c7520456c30d8989c346d97b28c801d.tar.gz
samba-5971fd6b9c7520456c30d8989c346d97b28c801d.tar.bz2
samba-5971fd6b9c7520456c30d8989c346d97b28c801d.zip
Fix warnings in new prefixMap code
(This used to be commit b8770a4fd8408473593fa4c6600bce056183958d)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/schema_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 9b8959466d..85fdbe9e87 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -566,9 +566,10 @@ WERROR dsdb_read_prefixes_from_ldb(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
return WERR_NOMEM;
}
for (i=0; i < blob->ctr.dsdb.num_mappings; i++) {
+ char *oid;
(*prefixes)[i].id = blob->ctr.dsdb.mappings[i].id_prefix<<16;
- (*prefixes)[i].oid = talloc_strdup(mem_ctx, blob->ctr.dsdb.mappings[i].oid.oid);
- (*prefixes)[i].oid = talloc_asprintf_append((*prefixes)[i].oid, ".");
+ oid = talloc_strdup(mem_ctx, blob->ctr.dsdb.mappings[i].oid.oid);
+ (*prefixes)[i].oid = talloc_asprintf_append(oid, ".");
(*prefixes)[i].oid_len = strlen(blob->ctr.dsdb.mappings[i].oid.oid);
}