From 76b2e7ba1337591edd9fbfe777a47e3413a77c32 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Nov 2006 16:39:34 +0000 Subject: r19891: Fix klokwork id 2189 (This used to be commit b6933c3043b73b68a30f57f681185a79c8e205c2) --- source3/lib/ldb/modules/asq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index da5afde212..36ea0da256 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/lib/ldb/modules/asq.c @@ -187,7 +187,9 @@ static int asq_reqs_callback(struct ldb_context *ldb, void *context, struct ldb_ goto error; } - ac = talloc_get_type(context, struct asq_context); + if (!(ac = talloc_get_type(context, struct asq_context))) { + goto error; + } /* we are interested only in the single reply (base search) we receive here */ if (ares->type == LDB_REPLY_ENTRY) { -- cgit