summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-08-27 18:12:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:15 -0500
commit7d7b3a9040acbb3b524b4ce2ebfb822388b154c2 (patch)
tree47124395670bed2595ca9a8d0c0d955e273dfd18
parenta380f2ce6a756d3743bd2075b7d8492ee0c74bda (diff)
downloadsamba-7d7b3a9040acbb3b524b4ce2ebfb822388b154c2.tar.gz
samba-7d7b3a9040acbb3b524b4ce2ebfb822388b154c2.tar.bz2
samba-7d7b3a9040acbb3b524b4ce2ebfb822388b154c2.zip
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)
-rw-r--r--source3/nsswitch/winbindd_rpc.c3
1 files changed, 1 insertions, 2 deletions
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));