summaryrefslogtreecommitdiff
path: root/source3/lib/ldb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-25 16:35:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:04 -0500
commit433869019bdaa7f21467769eb5398f2973fa54f3 (patch)
tree46edc0661443a5104ca8d961250ac655a2c77f02 /source3/lib/ldb
parent2a0e64e6916d38402d4c03b9e1e6a98453449fa8 (diff)
downloadsamba-433869019bdaa7f21467769eb5398f2973fa54f3.tar.gz
samba-433869019bdaa7f21467769eb5398f2973fa54f3.tar.bz2
samba-433869019bdaa7f21467769eb5398f2973fa54f3.zip
r19889: Fix klokwork ID 2187
(This used to be commit 1bd660fb9139238229fc6a80566c03f473cad094)
Diffstat (limited to 'source3/lib/ldb')
-rw-r--r--source3/lib/ldb/modules/asq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c
index 2fed6aac50..bee8038d9f 100644
--- a/source3/lib/ldb/modules/asq.c
+++ b/source3/lib/ldb/modules/asq.c
@@ -105,6 +105,9 @@ static int asq_terminate(struct ldb_handle *handle)
int i;
ac = talloc_get_type(handle->private_data, struct asq_context);
+ if (ac == NULL) {
+ return LDB_ERR_OPERATIONS_ERROR;
+ }
handle->status = LDB_SUCCESS;
handle->state = LDB_ASYNC_DONE;