diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/ldb/modules/asq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index e0c866d259..5bda383b44 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/lib/ldb/modules/asq.c @@ -296,7 +296,10 @@ static int asq_requests(struct ldb_handle *handle) { struct ldb_message_element *el; int i; - ac = talloc_get_type(handle->private_data, struct asq_context); + if (!(ac = talloc_get_type(handle->private_data, + struct asq_context))) { + return LDB_ERR_OPERATIONS_ERROR; + } /* look up the DNs */ if (ac->base_res == NULL) { |