summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/samdb/ldb_modules/new_partition.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/new_partition.c b/source4/dsdb/samdb/ldb_modules/new_partition.c
index a7de846f6c..63c9200775 100644
--- a/source4/dsdb/samdb/ldb_modules/new_partition.c
+++ b/source4/dsdb/samdb/ldb_modules/new_partition.c
@@ -148,9 +148,7 @@ static int new_partition_add(struct ldb_module *module, struct ldb_request *req)
return ldb_next_request(module, req);
}
- if (!ldb_msg_find_element(req->op.add.message, "instanceType")) {
- return ldb_next_request(module, req);
- } else {
+ if (ldb_msg_find_element(req->op.add.message, "instanceType")) {
/* This needs to be 'static' to ensure it does not move, and is not on the stack */
static const char *no_attrs[] = { NULL };
unsigned int instanceType = ldb_msg_find_attr_as_uint(req->op.add.message, "instanceType", 0);