1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r24713: Fix obvious error in enum_dom_groups. We were returning NT_STATUS_OK when the realloc failed.

Guenther
This commit is contained in:
Günther Deschner 2007-08-27 18:12:29 +00:00 committed by Gerald (Jerry) Carter
parent 5187157607
commit 750b52cb47

View File

@ -172,8 +172,7 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain,
(*num_entries) + count);
if (! *info) {
talloc_destroy(mem_ctx2);
status = NT_STATUS_NO_MEMORY;
break;
return NT_STATUS_NO_MEMORY;
}
memcpy(&(*info)[*num_entries], info2, count*sizeof(*info2));