r15845: Ok. This was a tough one. If for some reason the tconX fails towards a domain
authorVolker Lendecke <vlendec@samba.org>
Tue, 23 May 2006 22:35:08 +0000 (22:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:11 +0000 (11:17 -0500)
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)

source3/nsswitch/winbindd_cm.c

index 6322a33c029457b60db33ea9c56150eb63a7f050..c9e970c13cdb84ccb511303aa4eddf094a643d90 100644 (file)
@@ -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;
        }