diff options
author | Günther Deschner <gd@samba.org> | 2008-04-22 00:05:05 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-04-22 00:05:05 +0200 |
commit | de9186ecc6fe885d08307ef9803957752ca0c467 (patch) | |
tree | f753d2b5f937c4358b81404d50f5c904df986571 | |
parent | bd3991ac970c1b0856e2e8525fe683c0b1596ea1 (diff) | |
download | samba-de9186ecc6fe885d08307ef9803957752ca0c467.tar.gz samba-de9186ecc6fe885d08307ef9803957752ca0c467.tar.bz2 samba-de9186ecc6fe885d08307ef9803957752ca0c467.zip |
dsgetdcname: Fix discover_dc_dns().
Guenther
(This used to be commit ec86deb349850c634b49cd5a536e9281a4a6e7d8)
-rw-r--r-- | source3/libsmb/dsgetdcname.c | 4 |
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++; |