s3:winbindd_cm: use controller instead of cli->desthost
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:52:55 +0000 (16:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 15:06:10 +0000 (17:06 +0200)
The should have the same value.

metze

source3/winbindd/winbindd_cm.c

index 5f2c8c146346496406c7c02436013d3e3a657742..2a3d7177763679070eb5ed4043c25849ed5630cf 100644 (file)
@@ -960,9 +960,9 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
 
        /* cache the server name for later connections */
 
-       saf_store( domain->name, (*cli)->desthost );
+       saf_store(domain->name, controller);
        if (domain->alt_name && (*cli)->use_kerberos) {
-               saf_store( domain->alt_name, (*cli)->desthost );
+               saf_store(domain->alt_name, controller);
        }
 
        winbindd_set_locator_kdc_envs(domain);