From 7d7b3a9040acbb3b524b4ce2ebfb822388b154c2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 27 Aug 2007 18:12:29 +0000 Subject: r24713: Fix obvious error in enum_dom_groups. We were returning NT_STATUS_OK when the realloc failed. Guenther (This used to be commit 750b52cb47b2fd0d31125274fb471a4f1ad6ffa9) --- source3/nsswitch/winbindd_rpc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/nsswitch/winbindd_rpc.c') diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index 1895622f56..6d2dd35080 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -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)); -- cgit