From 235e8c9653a9199f2766c5c4a2d1f1d4f2801a3b 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 --- source/lib/ldb/modules/asq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/lib') diff --git a/source/lib/ldb/modules/asq.c b/source/lib/ldb/modules/asq.c index 36ea0da2564..e0c866d2592 100644 --- a/source/lib/ldb/modules/asq.c +++ b/source/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