svn commit: samba r13056 - in trunk/source/nsswitch: .

jra at samba.org jra at samba.org
Fri Jan 20 17:19:21 GMT 2006


Author: jra
Date: 2006-01-20 17:19:20 +0000 (Fri, 20 Jan 2006)
New Revision: 13056

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

Log:
Don't access tdb's in child before doing tdb_reopen.
Jeremy.

Modified:
   trunk/source/nsswitch/winbindd_dual.c


Changeset:
Modified: trunk/source/nsswitch/winbindd_dual.c
===================================================================
--- trunk/source/nsswitch/winbindd_dual.c	2006-01-20 17:17:16 UTC (rev 13055)
+++ trunk/source/nsswitch/winbindd_dual.c	2006-01-20 17:19:20 UTC (rev 13056)
@@ -578,13 +578,6 @@
 
 	/* Child */
 
-	/* Don't handle the same messages as our parent. */
-	message_deregister(MSG_SMB_CONF_UPDATED);
-	message_deregister(MSG_SHUTDOWN);
-	message_deregister(MSG_WINBIND_OFFLINE);
-	message_deregister(MSG_WINBIND_ONLINE);
-
-
 	state.sock = fdpair[0];
 	close(fdpair[1]);
 
@@ -601,6 +594,12 @@
 		reopen_logs();
 	}
 
+	/* Don't handle the same messages as our parent. */
+	message_deregister(MSG_SMB_CONF_UPDATED);
+	message_deregister(MSG_SHUTDOWN);
+	message_deregister(MSG_WINBIND_OFFLINE);
+	message_deregister(MSG_WINBIND_ONLINE);
+
 	child->mem_ctx = talloc_init("child_mem_ctx");
 	if (child->mem_ctx == NULL) {
 		return False;



More information about the samba-cvs mailing list