s4:dsdb/new_partition.c - remove the "ldb_next_request" call which we find also below...
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 29 Jun 2010 20:23:15 +0000 (22:23 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 29 Jun 2010 20:23:15 +0000 (22:23 +0200)
source4/dsdb/samdb/ldb_modules/new_partition.c

index a7de846f6cf9c779a455b31ef33b61753035d646..63c920077561e105204d8941524377667f4bccea 100644 (file)
@@ -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);