summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema_set.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-12 13:17:09 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-10-12 16:51:03 +1100
commitd511d889a09dee93338d93fcef22625089ae110c (patch)
tree99b500e2d8ff490f6ebe9dfaf6b86589fdaba8a1 /source4/dsdb/schema/schema_set.c
parentaee3c190156ed6f644535ab62ffe72b74e611b43 (diff)
downloadsamba-d511d889a09dee93338d93fcef22625089ae110c.tar.gz
samba-d511d889a09dee93338d93fcef22625089ae110c.tar.bz2
samba-d511d889a09dee93338d93fcef22625089ae110c.zip
s4:schema Add some error checking to the schema load
Diffstat (limited to 'source4/dsdb/schema/schema_set.c')
-rw-r--r--source4/dsdb/schema/schema_set.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c
index 6f09f63596..9f22b32334 100644
--- a/source4/dsdb/schema/schema_set.c
+++ b/source4/dsdb/schema/schema_set.c
@@ -346,7 +346,10 @@ int dsdb_set_schema(struct ldb_context *ldb, struct dsdb_schema *schema)
return ret;
}
- schema_fill_constructed(schema);
+ ret = schema_fill_constructed(schema);
+ if (ret != LDB_SUCCESS) {
+ return ret;
+ }
ret = ldb_set_opaque(ldb, "dsdb_schema", schema);
if (ret != LDB_SUCCESS) {