winbindd: Fix crash in cm_connect_sam()
authorGerald (Jerry) Carter <jerry@samba.org>
Fri, 22 Aug 2008 15:17:04 +0000 (10:17 -0500)
committerGerald (Jerry) Carter <jerry@samba.org>
Fri, 22 Aug 2008 19:50:58 +0000 (14:50 -0500)
commit7e0314f6a29dd36e3911a21972aedb76270f1313
treefee8a032f6624a812febd67af004a0c18719e857
parent2ed60a4f6a6e7533648a588fa3c5d98f37529229
winbindd: Fix crash in cm_connect_sam()

Fix segv when talking to parent DC (joined to child domain).

The root cause was

(a) storing the parent domain in the cli_state struct caused
    the NTLMSSP pipe bind to fail which made us fallover to
    the schannel code path
(b) the dcinfo pointer in cm_get_schannel_dcinfo() was returning
    NULL even though the function indicated success.
(This used to be commit 5ce4a2ae6697970ea37d0078a506615b4b7a9a9c)
source3/winbindd/winbindd_cm.c