summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-08-16 08:47:10 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-08-16 08:47:10 +0000
commitb84315e2d583ad4bf06b5e43c3c1046a751326b6 (patch)
tree5c16c9fe5e2639c70eb0b1ab8e08df205e2ccca7 /source3
parentfbaf4d07ae32c1052683ca0cae9ecdb6b9ed2521 (diff)
downloadsamba-b84315e2d583ad4bf06b5e43c3c1046a751326b6.tar.gz
samba-b84315e2d583ad4bf06b5e43c3c1046a751326b6.tar.bz2
samba-b84315e2d583ad4bf06b5e43c3c1046a751326b6.zip
Return the error if get_group_domain_entries() fails.
(This used to be commit bc9e9e3e2e0d861f34de26a9ef8b627a86c9954d)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 1a09917ac7..ee40453482 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -1081,7 +1081,9 @@ NTSTATUS _samr_enum_dom_groups(pipes_struct *p, SAMR_Q_ENUM_DOM_GROUPS *q_u, SAM
DEBUG(5,("samr_reply_enum_dom_groups: %d\n", __LINE__));
/* the domain group array is being allocated in the function below */
- get_group_domain_entries(p->mem_ctx, &grp, &sid, q_u->start_idx, &num_entries, MAX_SAM_ENTRIES);
+ if (!NT_STATUS_IS_OK(r_u->status = get_group_domain_entries(p->mem_ctx, &grp, &sid, q_u->start_idx, &num_entries, MAX_SAM_ENTRIES))) {
+ return r_u->status;
+ }
make_group_sam_entry_list(p->mem_ctx, &r_u->sam, &r_u->uni_grp_name, num_entries, grp);