From 4f029f6f1b443db0762c3bac275415b385c26435 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 29 Jun 2010 22:23:15 +0200 Subject: s4:dsdb/new_partition.c - remove the "ldb_next_request" call which we find also below the "if" block --- source4/dsdb/samdb/ldb_modules/new_partition.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4/dsdb') 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); -- cgit