s3: winbindd: Old NT Domain code sets struct winbind_domain->alt_name to be NULL...
commit6b1091dcd9a32977542692e78cfa2c930a691404
authorJeremy Allison <jra@samba.org>
Wed, 16 Jul 2014 19:41:55 +0000 (16 12:41 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sat, 27 Sep 2014 18:58:13 +0000 (27 20:58 +0200)
tree10c66f9672896d12b4b3c4af36ca978cfe155b50
parent632e0bc215abaec2a3e3a3f0e889c481ddb0ee42
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

(cherry picked from commit 92da0b243c18546275c4736507188eba425a0732)
source3/winbindd/winbindd_ads.c
source3/winbindd/winbindd_cm.c