summaryrefslogtreecommitdiffstats
path: root/source/lib/ldb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-25 16:43:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:06 -0500
commit4b075f347b5449b199be19221187ce66916384cf (patch)
treee246e33c866e19d8b09ca557959f8fb53e9c51e5 /source/lib/ldb
parenta301a4a12d554d9d3ba00c2780deb9eafc44e1a8 (diff)
downloadsamba-4b075f347b5449b199be19221187ce66916384cf.tar.gz
samba-4b075f347b5449b199be19221187ce66916384cf.tar.xz
samba-4b075f347b5449b199be19221187ce66916384cf.zip
r19894: Fix klokwork id 2192
Diffstat (limited to 'source/lib/ldb')
-rw-r--r--source/lib/ldb/modules/asq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/lib/ldb/modules/asq.c b/source/lib/ldb/modules/asq.c
index 5bda383b44e..7d232023033 100644
--- a/source/lib/ldb/modules/asq.c
+++ b/source/lib/ldb/modules/asq.c
@@ -361,8 +361,10 @@ static int asq_wait_none(struct ldb_handle *handle)
handle->state = LDB_ASYNC_PENDING;
handle->status = LDB_SUCCESS;
- 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;
+ }
switch (ac->step) {
case ASQ_SEARCH_BASE: