summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-12-01 09:33:10 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-12-09 12:00:03 +0100
commit1b741b2bcc8b085be9f092b6d7e203661b571c43 (patch)
tree545ff34916333ae7c783a20f632ae8dcb350da97 /source4/dsdb
parentc01efc1207b097517623d71b2ed9a24bb9c255de (diff)
downloadsamba-1b741b2bcc8b085be9f092b6d7e203661b571c43.tar.gz
samba-1b741b2bcc8b085be9f092b6d7e203661b571c43.tar.bz2
samba-1b741b2bcc8b085be9f092b6d7e203661b571c43.zip
s4:dsdb/common/util.c - test LDB result against LDB_SUCCESS as we are always doing
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Dec 9 12:00:03 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 826a1e4592..38391a9998 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -1306,7 +1306,7 @@ struct ldb_dn *samdb_ntds_settings_dn(struct ldb_context *ldb)
}
ret = ldb_search(ldb, tmp_ctx, &root_res, ldb_dn_new(tmp_ctx, ldb, ""), LDB_SCOPE_BASE, root_attrs, NULL);
- if (ret) {
+ if (ret != LDB_SUCCESS) {
DEBUG(1,("Searching for dsServiceName in rootDSE failed: %s\n",
ldb_errstring(ldb)));
goto failed;