s3: Simplify "setup_domain_child" slightly
authorVolker Lendecke <vl@samba.org>
Mon, 28 Dec 2009 09:57:01 +0000 (10:57 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 28 Dec 2009 13:59:45 +0000 (14:59 +0100)
source3/winbindd/winbindd_domain.c
source3/winbindd/winbindd_dual.c

index 40e38017ccfb41c6f6903b7b0c99f9affd7c8042..45da57e1327073b6dda12c1038ecb7bfe1594d2e 100644 (file)
@@ -80,6 +80,4 @@ void setup_domain_child(struct winbindd_domain *domain,
 {
        setup_child(domain, child, domain_dispatch_table,
                    "log.wb", domain->name);
-
-       child->domain = domain;
 }
index 9a80d487646e4f2cb993a0619e0ca78c597333cd..bccd63ffa464f29aa6cc5f1c084ba8be0743b5cf 100644 (file)
@@ -502,7 +502,7 @@ void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
                          "logname == NULL");
        }
 
-       child->domain = NULL;
+       child->domain = domain;
        child->table = table;
        child->queue = tevent_queue_create(NULL, "winbind_child");
        SMB_ASSERT(child->queue != NULL);