summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-06-13 14:16:43 +0200
committerStefan Metzmacher <metze@samba.org>2013-06-13 18:19:24 +0200
commitf1781adb051bb5a166d619ed9db6bdb252b1acb5 (patch)
treecac87174d7719d0ce3c0755cefa0d70cc73961e3
parent122214b16bb2d247c8040728a6b0964531596ea9 (diff)
downloadsamba-f1781adb051bb5a166d619ed9db6bdb252b1acb5.tar.gz
samba-f1781adb051bb5a166d619ed9db6bdb252b1acb5.tar.bz2
samba-f1781adb051bb5a166d619ed9db6bdb252b1acb5.zip
dsdb: remove a wrong comment in dsdb_check_access_on_dn_internal()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 13 18:19:24 CEST 2013 on sn-devel-104
-rw-r--r--source4/dsdb/common/dsdb_access.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/dsdb/common/dsdb_access.c b/source4/dsdb/common/dsdb_access.c
index b918220a06..5c02daa7d0 100644
--- a/source4/dsdb/common/dsdb_access.c
+++ b/source4/dsdb/common/dsdb_access.c
@@ -101,10 +101,7 @@ int dsdb_check_access_on_dn_internal(struct ldb_context *ldb,
if (ret != LDB_SUCCESS) {
return ldb_operr(ldb);
}
- /* Theoretically we pass the check if the object has no sd */
- if (!sd) {
- return LDB_SUCCESS;
- }
+
sid = samdb_result_dom_sid(mem_ctx, acl_res->msgs[0], "objectSid");
if (guid) {
if (!insert_in_object_tree(mem_ctx, guid, access_mask, NULL,