s3:net_util: use server_name instead of cli->desthost
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:52:11 +0000 (16:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 15:06:10 +0000 (17:06 +0200)
They should be the same.

metze

source3/utils/net_util.c

index a151d6ee6717ae090378b2033dbe2c692afa3f27..4bf4e3395b09fdb32431f3ed691aa5529059a43a 100644 (file)
@@ -531,7 +531,7 @@ NTSTATUS net_make_ipc_connection_ex(struct net_context *c ,const char *domain,
        /* store the server in the affinity cache if it was a PDC */
 
        if ( (flags & NET_FLAGS_PDC) && NT_STATUS_IS_OK(nt_status) )
-               saf_store( cli->server_domain, cli->desthost );
+               saf_store(cli->server_domain, server_name);
 
        SAFE_FREE(server_name);
        if (!NT_STATUS_IS_OK(nt_status)) {