diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-12-04 23:03:21 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-12-06 00:18:47 +0200 |
commit | be27a9dc42cb950443a77e44fdfbd4e5019893aa (patch) | |
tree | 599bad23773c1d14d4630e410cf7648580f59c4d /source4/dsdb/samdb | |
parent | 654e0102ddb0acaaf45fb55c15818722235fcc9f (diff) | |
download | samba-be27a9dc42cb950443a77e44fdfbd4e5019893aa.tar.gz samba-be27a9dc42cb950443a77e44fdfbd4e5019893aa.tar.bz2 samba-be27a9dc42cb950443a77e44fdfbd4e5019893aa.zip |
s4-schema_load: Strip a pointless check
If *schema is NULL, then dsdb_schema_from_ldb_results()
call should have failed
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_load.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c index ddc3b3f0c9..4b6fc4690b 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_load.c +++ b/source4/dsdb/samdb/ldb_modules/schema_load.c @@ -239,9 +239,7 @@ static int dsdb_schema_from_db(struct ldb_module *module, struct ldb_dn *schema_ /* "dsdb_set_schema()" steals schema into the ldb_context */ ret = dsdb_set_schema(ldb, (*schema)); - if (*schema != NULL) { - (*schema)->refresh_in_progress = false; - } + (*schema)->refresh_in_progress = false; if (ret != LDB_SUCCESS) { ldb_debug_set(ldb, LDB_DEBUG_FATAL, |