summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-25 16:42:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:05 -0500
commit7968602097ffaa310745cc93ab99f493509aac62 (patch)
tree0aa62a83eefa530b2144ef8838ccec7c4a651042
parent7230ce8cd0e463ca5f353bc6bc0fad8f7819c550 (diff)
downloadsamba-7968602097ffaa310745cc93ab99f493509aac62.tar.gz
samba-7968602097ffaa310745cc93ab99f493509aac62.tar.bz2
samba-7968602097ffaa310745cc93ab99f493509aac62.zip
r19893: Fix klokwork id 2191
(This used to be commit a301a4a12d554d9d3ba00c2780deb9eafc44e1a8)
-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 e0c866d259..5bda383b44 100644
--- a/source3/lib/ldb/modules/asq.c
+++ b/source3/lib/ldb/modules/asq.c
@@ -296,7 +296,10 @@ static int asq_requests(struct ldb_handle *handle) {
struct ldb_message_element *el;
int i;
- 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;
+ }
/* look up the DNs */
if (ac->base_res == NULL) {