diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-25 16:43:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:06 -0500 |
commit | 40dc09e009ca91225345e7f27936b38133bf7131 (patch) | |
tree | 7e32003daaefa0d69eaeb281a9f256ab27e0f245 /source3/lib/ldb/modules/asq.c | |
parent | 7968602097ffaa310745cc93ab99f493509aac62 (diff) | |
download | samba-40dc09e009ca91225345e7f27936b38133bf7131.tar.gz samba-40dc09e009ca91225345e7f27936b38133bf7131.tar.bz2 samba-40dc09e009ca91225345e7f27936b38133bf7131.zip |
r19894: Fix klokwork id 2192
(This used to be commit 4b075f347b5449b199be19221187ce66916384cf)
Diffstat (limited to 'source3/lib/ldb/modules/asq.c')
-rw-r--r-- | source3/lib/ldb/modules/asq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index 5bda383b44..7d23202303 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/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: |