From 40dc09e009ca91225345e7f27936b38133bf7131 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Nov 2006 16:43:26 +0000 Subject: r19894: Fix klokwork id 2192 (This used to be commit 4b075f347b5449b199be19221187ce66916384cf) --- source3/lib/ldb/modules/asq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index 5bda383b44..7d23202303 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/lib/ldb/modules/asq.c @@ -361,8 +361,10 @@ static int asq_wait_none(struct ldb_handle *handle) handle->state = LDB_ASYNC_PENDING; handle->status = LDB_SUCCESS; - 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; + } switch (ac->step) { case ASQ_SEARCH_BASE: -- cgit