From 7968602097ffaa310745cc93ab99f493509aac62 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Nov 2006 16:42:21 +0000 Subject: r19893: Fix klokwork id 2191 (This used to be commit a301a4a12d554d9d3ba00c2780deb9eafc44e1a8) --- 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 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) { -- cgit