From 7230ce8cd0e463ca5f353bc6bc0fad8f7819c550 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Nov 2006 16:41:06 +0000 Subject: r19892: Fix klokwork id 2190 (This used to be commit 235e8c9653a9199f2766c5c4a2d1f1d4f2801a3b) --- source3/lib/ldb/modules/asq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/lib/ldb/modules') diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index 36ea0da256..e0c866d259 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/lib/ldb/modules/asq.c @@ -241,7 +241,10 @@ static int asq_search(struct ldb_module *module, struct ldb_request *req) if (!h) { return LDB_ERR_OPERATIONS_ERROR; } - ac = talloc_get_type(h->private_data, struct asq_context); + if (!(ac = talloc_get_type(h->private_data, struct asq_context))) { + + return LDB_ERR_OPERATIONS_ERROR; + } req->handle = h; -- cgit