summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-05-23 22:35:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:11 -0500
commitfc72e30c8d007afa70cf90eec8a0f0cc5f5f42b0 (patch)
tree78c4a37d08819646e5ce661f9a88ffb6d446ac45
parentee8079732d15df0419b2d66fcae55e9ccd5c656f (diff)
downloadsamba-fc72e30c8d007afa70cf90eec8a0f0cc5f5f42b0.tar.gz
samba-fc72e30c8d007afa70cf90eec8a0f0cc5f5f42b0.tar.bz2
samba-fc72e30c8d007afa70cf90eec8a0f0cc5f5f42b0.zip
r15845: Ok. This was a tough one. If for some reason the tconX fails towards a domain
controller the next time we connect this child ran into a segfault because it tried to reference a half-baked connection. Volker (This used to be commit c8a8204c744cf7aa1a1a6992a3433d99b6bb73a1)
-rw-r--r--source3/nsswitch/winbindd_cm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index 6322a33c02..c9e970c13c 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -372,6 +372,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
result = NT_STATUS_UNSUCCESSFUL;
cli_shutdown(*cli);
+ *cli = NULL;
goto done;
}