svn commit: samba r18317 - in
branches/SAMBA_4_0/source/lib/ldb/modules: .
idra at samba.org
idra at samba.org
Sun Sep 10 03:11:03 GMT 2006
Author: idra
Date: 2006-09-10 03:11:03 +0000 (Sun, 10 Sep 2006)
New Revision: 18317
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18317
Log:
Make sure we actually have a valid reply or fail
Modified:
branches/SAMBA_4_0/source/lib/ldb/modules/asq.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/modules/asq.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/asq.c 2006-09-10 02:46:17 UTC (rev 18316)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/asq.c 2006-09-10 03:11:03 UTC (rev 18317)
@@ -289,6 +289,9 @@
ac = talloc_get_type(handle->private_data, struct asq_context);
/* look up the DNs */
+ if (ac->base_res == NULL) {
+ return LDB_ERR_NO_SUCH_OBJECT;
+ }
el = ldb_msg_find_element(ac->base_res->message, ac->req_attribute);
/* no values found */
if (el == NULL) {
More information about the samba-cvs
mailing list