winbindd: add_trusted_domain_from_auth() should not use dns_name = ""
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Jan 2018 22:19:32 +0000 (23:19 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 10 Feb 2018 07:35:16 +0000 (08:35 +0100)
commit2ee2551409e0bd0cd5bf130cc1e3736e58b8c14d
treea4e03c19e219350feb708f42ddeff296b96da35f
parent8b0e1a77ae5f7ef6d8db9a05718afa8d472a971b
winbindd: add_trusted_domain_from_auth() should not use dns_name = ""

Check whether the DNS domain name in the info6 struct is actually more
then just an empty string. If it is we want to call add_trusted_domain()
with NULL as DNS domain name argument.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/winbindd_util.c