summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-22 00:05:05 +0200
committerGünther Deschner <gd@samba.org>2008-04-22 00:05:05 +0200
commitde9186ecc6fe885d08307ef9803957752ca0c467 (patch)
treef753d2b5f937c4358b81404d50f5c904df986571 /source3/libsmb
parentbd3991ac970c1b0856e2e8525fe683c0b1596ea1 (diff)
downloadsamba-de9186ecc6fe885d08307ef9803957752ca0c467.tar.gz
samba-de9186ecc6fe885d08307ef9803957752ca0c467.tar.bz2
samba-de9186ecc6fe885d08307ef9803957752ca0c467.zip
dsgetdcname: Fix discover_dc_dns().
Guenther (This used to be commit ec86deb349850c634b49cd5a536e9281a4a6e7d8)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/dsgetdcname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 874a7749b7..5af65c5dca 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -524,8 +524,8 @@ static NTSTATUS discover_dc_dns(TALLOC_CTX *mem_ctx,
struct ip_service_name *r = &dclist[count];
- r->port = dcs[i].port;
- r->hostname = dcs[i].hostname;
+ r->port = dcs[count].port;
+ r->hostname = dcs[count].hostname;
if (!(flags & DS_IP_REQUIRED)) {
count++;