diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-29 22:23:15 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-29 22:23:15 +0200 |
commit | 4f029f6f1b443db0762c3bac275415b385c26435 (patch) | |
tree | b8f4062d2cef2c1467fff51ebe1c5fa946181a3b | |
parent | 17a5c876a69156843a8f4acca0e52e08845511fd (diff) | |
download | samba-4f029f6f1b443db0762c3bac275415b385c26435.tar.gz samba-4f029f6f1b443db0762c3bac275415b385c26435.tar.bz2 samba-4f029f6f1b443db0762c3bac275415b385c26435.zip |
s4:dsdb/new_partition.c - remove the "ldb_next_request" call which we find also below the "if" block
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/new_partition.c | 4 |
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); |