diff options
-rw-r--r-- | source3/winbindd/winbindd_list_groups.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_list_groups.c b/source3/winbindd/winbindd_list_groups.c index 3795045787..a621762edb 100644 --- a/source3/winbindd/winbindd_list_groups.c +++ b/source3/winbindd/winbindd_list_groups.c @@ -153,7 +153,7 @@ NTSTATUS winbindd_list_groups_recv(struct tevent_req *req, NTSTATUS status; char *result; int i; - uint32_t j; + uint32_t j, num_entries = 0; size_t len; if (tevent_req_is_nterror(req, &status)) { @@ -193,10 +193,12 @@ NTSTATUS winbindd_list_groups_recv(struct tevent_req *req, len += this_len; result[len] = ','; len += 1; + num_entries++; } } result[len-1] = '\0'; + response->data.num_entries = num_entries; response->extra_data.data = result; response->length += len; |