summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-25 16:41:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:05 -0500
commit7230ce8cd0e463ca5f353bc6bc0fad8f7819c550 (patch)
tree1c0751f03418f0b01b5f087b0fcb13c0783e48f5 /source3/lib
parent76b2e7ba1337591edd9fbfe777a47e3413a77c32 (diff)
downloadsamba-7230ce8cd0e463ca5f353bc6bc0fad8f7819c550.tar.gz
samba-7230ce8cd0e463ca5f353bc6bc0fad8f7819c550.tar.bz2
samba-7230ce8cd0e463ca5f353bc6bc0fad8f7819c550.zip
r19892: Fix klokwork id 2190
(This used to be commit 235e8c9653a9199f2766c5c4a2d1f1d4f2801a3b)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ldb/modules/asq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c
index 36ea0da256..e0c866d259 100644
--- a/source3/lib/ldb/modules/asq.c
+++ b/source3/lib/ldb/modules/asq.c
@@ -241,7 +241,10 @@ static int asq_search(struct ldb_module *module, struct ldb_request *req)
if (!h) {
return LDB_ERR_OPERATIONS_ERROR;
}
- ac = talloc_get_type(h->private_data, struct asq_context);
+ if (!(ac = talloc_get_type(h->private_data, struct asq_context))) {
+
+ return LDB_ERR_OPERATIONS_ERROR;
+ }
req->handle = h;