s3: "port" is not used in dsgetdcname
authorVolker Lendecke <vl@samba.org>
Mon, 25 Apr 2011 09:24:31 +0000 (11:24 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Apr 2011 09:47:27 +0000 (11:47 +0200)
Günther, please check!

source3/libsmb/dsgetdcname.c

index e062818ddae2964f8a167d6f4c94dd175de6830d..2a4709a02bffbda5671cfa8fc16ba57a0e8170ed 100644 (file)
@@ -32,7 +32,6 @@
 
 struct ip_service_name {
        struct sockaddr_storage ss;
-       unsigned port;
        const char *hostname;
 };
 
@@ -514,7 +513,6 @@ static NTSTATUS discover_dc_netbios(TALLOC_CTX *mem_ctx,
                               &iplist[i].ss);
 
                r->ss   = iplist[i].ss;
-               r->port = iplist[i].port;
                r->hostname = talloc_strdup(mem_ctx, addr);
                if (!r->hostname) {
                        SAFE_FREE(iplist);
@@ -598,7 +596,6 @@ 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;
 
                /* If we don't have an IP list for a name, lookup it up */