svn commit: samba r19894 - in
branches/SAMBA_3_0/source/lib/ldb/modules: .
vlendec at samba.org
vlendec at samba.org
Sat Nov 25 16:43:26 GMT 2006
Author: vlendec
Date: 2006-11-25 16:43:26 +0000 (Sat, 25 Nov 2006)
New Revision: 19894
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19894
Log:
Fix klokwork id 2192
Modified:
branches/SAMBA_3_0/source/lib/ldb/modules/asq.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/modules/asq.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/modules/asq.c 2006-11-25 16:42:21 UTC (rev 19893)
+++ branches/SAMBA_3_0/source/lib/ldb/modules/asq.c 2006-11-25 16:43:26 UTC (rev 19894)
@@ -361,9 +361,11 @@
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:
ret = ldb_wait(ac->base_req->handle, LDB_WAIT_NONE);
More information about the samba-cvs
mailing list