diff options
author | Matthieu Patou <mat@matws.net> | 2011-03-08 01:03:16 +0300 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-03-20 11:27:26 +0100 |
commit | 4a15c7e7502e174a5ecb47f85c327d12a367056d (patch) | |
tree | af3b30ceaf9fdb4008bc023211fd9d60a5bd6a8a /source4/dsdb | |
parent | cbb0f881ac50fd8704769de45e1dd66a0e2ff6a9 (diff) | |
download | samba-4a15c7e7502e174a5ecb47f85c327d12a367056d.tar.gz samba-4a15c7e7502e174a5ecb47f85c327d12a367056d.tar.xz samba-4a15c7e7502e174a5ecb47f85c327d12a367056d.zip |
dsdb: read acl, sd can be null and ret == LDB_SUCCESS
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/acl_read.c | 2 |
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 ae618ec639d..cde6d11c75b 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; |