r789: we return wrong number of entries
authorSimo Sorce <idra@samba.org>
Thu, 20 May 2004 07:49:34 +0000 (07:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:53:50 +0000 (12:53 -0500)
(This used to be commit c0c1596dbdb1769c3f10c8299f61807497b1d38a)

source4/rpc_server/samr/dcesrv_samr.c

index 62be2cd2625b7acbbbaf7d4837e6447821be30f4..e980c25b8005b9c6df3593835567c69c28cbb1ab 100644 (file)
@@ -301,7 +301,7 @@ static NTSTATUS samr_EnumDomains(struct dcesrv_call_state *dce_call, TALLOC_CTX
        }
 
        r->out.sam = array;
-       r->out.num_entries = i - start_i;
+       r->out.num_entries = i;
        array->count = r->out.num_entries;
 
        return NT_STATUS_OK;