r22735: correct some comments
authorRafal Szczesniak <mimir@samba.org>
Mon, 7 May 2007 05:55:40 +0000 (05:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:07 +0000 (14:52 -0500)
rafal
(This used to be commit 6d4268bcd3c28ed2928e68aea567517a671e314a)

source4/libnet/libnet_domain.c

index 4c55a5b0fddb33474db8d3c7cc054eed1c2ca2f1..9462b676c16a451430312a79ef7090a0932167c6 100644 (file)
@@ -1013,7 +1013,7 @@ static struct domainlist* get_domain_list(TALLOC_CTX *mem_ctx, struct domain_lis
        int i;
        if (mem_ctx == NULL || s == NULL) return NULL;
 
-       /* copy domain names returned from samr_EnumDomains call */
+       /* prepare domains array */
        if (s->domains == NULL) {
                s->domains = talloc_array(mem_ctx, struct domainlist,
                                          s->enumdom.out.num_entries);
@@ -1022,6 +1022,7 @@ static struct domainlist* get_domain_list(TALLOC_CTX *mem_ctx, struct domain_lis
                                            s->count + s->enumdom.out.num_entries);
        }
 
+       /* copy domain names returned from samr_EnumDomains call */
        for (i = s->count; i < s->count + s->enumdom.out.num_entries; i++)
        {
                struct lsa_String *domain_name = &s->enumdom.out.sam->entries[i - s->count].name;