dsgetdcname: use correct dc name for name cache store.
authorGünther Deschner <gd@samba.org>
Mon, 5 May 2008 15:22:49 +0000 (17:22 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 6 May 2008 07:41:41 +0000 (09:41 +0200)
Guenther

source/libsmb/dsgetdcname.c

index fbc3bda6e4bbd522526b3b2280b68d75bdad2efa..de647ad8bf5888d1a5feb1936e51d42d9b339d5a 100644 (file)
@@ -830,7 +830,7 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
                {
                        dc_hostname = tmp_dc_name;
                        dc_domain_name = talloc_strdup_upper(mem_ctx, domain_name);
-                       namecache_store(dc_name, NBT_NAME_SERVER, 1, &ip_list);
+                       namecache_store(tmp_dc_name, NBT_NAME_SERVER, 1, &ip_list);
                        goto make_reply;
                }
        }