From 0ad4c05508261c21e956ffcda67a112f02686ed6 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Mon, 7 May 2007 05:55:40 +0000 Subject: r22735: correct some comments rafal (This used to be commit 6d4268bcd3c28ed2928e68aea567517a671e314a) --- source4/libnet/libnet_domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/libnet/libnet_domain.c b/source4/libnet/libnet_domain.c index 4c55a5b0fd..9462b676c1 100644 --- a/source4/libnet/libnet_domain.c +++ b/source4/libnet/libnet_domain.c @@ -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; -- cgit