From d128defd315045c000f73e268a3efea761a84afd Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Nov 2006 16:38:23 +0000 Subject: r19890: Fix klokwork ID 2188 (This used to be commit 4d44388929f75d1480a8222a7cd2f575494a2b62) --- source3/lib/ldb/modules/asq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index bee8038d9f..da5afde212 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/lib/ldb/modules/asq.c @@ -161,7 +161,9 @@ static int asq_base_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