winbindd: Fix crash in cm_connect_sam()
commiteb0a0548e0a898736473156334222e74d445cf22
authorGerald (Jerry) Carter <jerry@samba.org>
Fri, 22 Aug 2008 15:17:04 +0000 (22 10:17 -0500)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Aug 2008 14:07:00 +0000 (28 16:07 +0200)
treef0f992b86098a6c93e905ef2297acf5d90deac1b
parentee30c1981eb46163d829d32ea1ac12572038085c
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.
(cherry picked from commit 5ce4a2ae6697970ea37d0078a506615b4b7a9a9c)
(cherry picked from commit 72d138adc200ab36e324721900af1a06d0879318)
source/winbindd/winbindd_cm.c