svn commit: samba r20772 - in branches/SAMBA_4_0/source/lib/ldb/modules: .

metze at samba.org metze at samba.org
Sun Jan 14 17:45:56 GMT 2007


Author: metze
Date: 2007-01-14 17:45:55 +0000 (Sun, 14 Jan 2007)
New Revision: 20772

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20772

Log:
fix segfault caused by ldb_set_default_dns() from init_context hook of the root dse module

metze
Modified:
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c	2007-01-14 17:04:15 UTC (rev 20771)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c	2007-01-14 17:45:55 UTC (rev 20772)
@@ -1173,6 +1173,9 @@
 	const char *wildcard[] = { "*", NULL };
 	const char * const *attrs;
 
+	if (!module->private_data) /* if we're not yet initialized, go to the next module */
+		return ldb_next_request(module, req);
+
 	/* Do not manipulate our control entries */
 	if (ldb_dn_is_special(req->op.search.base))
 		return ldb_next_request(module, req);



More information about the samba-cvs mailing list