From 4a15c7e7502e174a5ecb47f85c327d12a367056d Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 8 Mar 2011 01:03:16 +0300 Subject: [PATCH] dsdb: read acl, sd can be null and ret == LDB_SUCCESS --- source4/dsdb/samdb/ldb_modules/acl_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.4.GIT