s3: winbindd: Old NT Domain code sets struct winbind_domain->alt_name to be NULL...
commit92da0b243c18546275c4736507188eba425a0732
authorJeremy Allison <jra@samba.org>
Wed, 16 Jul 2014 19:41:55 +0000 (16 12:41 -0700)
committerMichael Adam <obnox@samba.org>
Mon, 15 Sep 2014 21:29:00 +0000 (15 23:29 +0200)
treed814637a193f1448c41787f4344e66b5487aaa64
parent7bc2e2d0d4a6706769a436798aa29d18a8f7c221
s3: winbindd: Old NT Domain code sets struct winbind_domain->alt_name to be NULL. Ensure this is safe with modern AD-DCs.

There are places in the code where we're not checking that alt_name is NULL
and then calling into the DC lookup code with a NULL name request. This can
happen in offline mode.

Fixes bug #10717 - Winbind crash on losing VPN connection

https://bugzilla.samba.org/show_bug.cgi?id=10717

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Sep 15 23:29:00 CEST 2014 on sn-devel-104
source3/winbindd/winbindd_ads.c
source3/winbindd/winbindd_cm.c