git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7968602
)
r19894: Fix klokwork id 2192
author
Volker Lendecke
<vlendec@samba.org>
Sat, 25 Nov 2006 16:43:26 +0000
(16:43 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:16:06 +0000
(12:16 -0500)
(This used to be commit
4b075f347b5449b199be19221187ce66916384cf
)
source3/lib/ldb/modules/asq.c
patch
|
blob
|
history
diff --git
a/source3/lib/ldb/modules/asq.c
b/source3/lib/ldb/modules/asq.c
index 5bda383b44e9ee73ec99bb36797079495eb0bad7..7d232023033ef9f2c1af0ed60f28485c21635834 100644
(file)
--- 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: