summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_dual.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-31 20:20:26 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-01 13:01:26 +0200
commit0f95d00f49ce58a09c95b60777f8d1a65626ec37 (patch)
treea82d848bd65e9ff1d981a9ec4b701d634303ab05 /source3/winbindd/winbindd_dual.c
parentd930904b997d310aeff781bde1e7e3ce47dde8a1 (diff)
downloadsamba-0f95d00f49ce58a09c95b60777f8d1a65626ec37.tar.gz
samba-0f95d00f49ce58a09c95b60777f8d1a65626ec37.tar.bz2
samba-0f95d00f49ce58a09c95b60777f8d1a65626ec37.zip
s3:winbindd: only set child_domain in the child
metze
Diffstat (limited to 'source3/winbindd/winbindd_dual.c')
-rw-r--r--source3/winbindd/winbindd_dual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index 26f92322a1..ca6af1f37b 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -1305,7 +1305,6 @@ static bool fork_domain_child(struct winbindd_child *child)
} else {
DEBUG(10, ("fork_domain_child called without domain.\n"));
}
- child_domain = child->domain;
if (socketpair(AF_UNIX, SOCK_STREAM, 0, fdpair) != 0) {
DEBUG(0, ("Could not open child pipe: %s\n",
@@ -1335,6 +1334,7 @@ static bool fork_domain_child(struct winbindd_child *child)
}
/* Child */
+ child_domain = child->domain;
DEBUG(10, ("Child process %d\n", (int)sys_getpid()));