From 433869019bdaa7f21467769eb5398f2973fa54f3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Nov 2006 16:35:22 +0000 Subject: r19889: Fix klokwork ID 2187 (This used to be commit 1bd660fb9139238229fc6a80566c03f473cad094) --- source3/lib/ldb/modules/asq.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib/ldb/modules') diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index 2fed6aac50..bee8038d9f 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/lib/ldb/modules/asq.c @@ -105,6 +105,9 @@ static int asq_terminate(struct ldb_handle *handle) int i; ac = talloc_get_type(handle->private_data, struct asq_context); + if (ac == NULL) { + return LDB_ERR_OPERATIONS_ERROR; + } handle->status = LDB_SUCCESS; handle->state = LDB_ASYNC_DONE; -- cgit