dsgetdcname: Fix discover_dc_dns().
authorGünther Deschner <gd@samba.org>
Mon, 21 Apr 2008 22:05:05 +0000 (00:05 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 21 Apr 2008 22:05:05 +0000 (00:05 +0200)
Guenther

source/libsmb/dsgetdcname.c

index 874a7749b756fd4f81e38c2206a3572eb3e9100e..5af65c5dcaab1709600683e29c4dd0adaa004a3f 100644 (file)
@@ -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++;