summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-03-08 01:03:16 +0300
committerMatthieu Patou <mat@samba.org>2011-03-20 11:27:26 +0100
commit4a15c7e7502e174a5ecb47f85c327d12a367056d (patch)
treeaf3b30ceaf9fdb4008bc023211fd9d60a5bd6a8a /source4/dsdb/samdb
parentcbb0f881ac50fd8704769de45e1dd66a0e2ff6a9 (diff)
downloadsamba-4a15c7e7502e174a5ecb47f85c327d12a367056d.tar.gz
samba-4a15c7e7502e174a5ecb47f85c327d12a367056d.tar.bz2
samba-4a15c7e7502e174a5ecb47f85c327d12a367056d.zip
dsdb: read acl, sd can be null and ret == LDB_SUCCESS
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/acl_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl_read.c b/source4/dsdb/samdb/ldb_modules/acl_read.c
index ae618ec639..cde6d11c75 100644
--- a/source4/dsdb/samdb/ldb_modules/acl_read.c
+++ b/source4/dsdb/samdb/ldb_modules/acl_read.c
@@ -88,7 +88,7 @@ static int aclread_callback(struct ldb_request *req, struct ldb_reply *ares)
case LDB_REPLY_ENTRY:
msg = ares->message;
ret = dsdb_get_sd_from_ldb_message(ldb, tmp_ctx, msg, &sd);
- if (ret != LDB_SUCCESS) {
+ if (ret != LDB_SUCCESS || sd == NULL ) {
DEBUG(10, ("acl_read: cannot get descriptor\n"));
ret = LDB_ERR_OPERATIONS_ERROR;
goto fail;