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)
commit5ce4a2ae6697970ea37d0078a506615b4b7a9a9c
treee18edaa88464f841ef88c8e91aef2e6c0dc645c3
parentb868463015dedc684eb13d12118a98ccca71250a
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.
source/winbindd/winbindd_cm.c