diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-09-29 17:05:38 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-06 02:11:34 +0200 |
commit | 5c5d86997593fd7ed9efc0f214f2e978c13083ac (patch) | |
tree | 64c1c26d3db44448592194b7251c68493bf20d3b | |
parent | 2d6571d2e576ea628f8c16545d977431bc22e791 (diff) | |
download | samba-5c5d86997593fd7ed9efc0f214f2e978c13083ac.tar.gz samba-5c5d86997593fd7ed9efc0f214f2e978c13083ac.tar.bz2 samba-5c5d86997593fd7ed9efc0f214f2e978c13083ac.zip |
s4-dsdb Allow repl server to start even when no master NCs are present
-rw-r--r-- | source4/dsdb/repl/drepl_partitions.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/dsdb/repl/drepl_partitions.c b/source4/dsdb/repl/drepl_partitions.c index 934c75e776..7c5424555a 100644 --- a/source4/dsdb/repl/drepl_partitions.c +++ b/source4/dsdb/repl/drepl_partitions.c @@ -63,14 +63,8 @@ WERROR dreplsrv_load_partitions(struct dreplsrv_service *s) } el = ldb_msg_find_element(res->msgs[0], "hasMasterNCs"); - if (!el) { - DEBUG(1,("Finding hasMasterNCs element in root_res failed: %s\n", - ldb_errstring(s->samdb))); - talloc_free(tmp_ctx); - return WERR_DS_DRA_INTERNAL_ERROR; - } - for (i=0; i<el->num_values; i++) { + for (i=0; el && i<el->num_values; i++) { struct ldb_dn *pdn; struct dreplsrv_partition *p; |