diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-12-29 13:22:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:42 -0500 |
commit | 4fd56d5d1a64814d4f8bbcd291dcea2283850db3 (patch) | |
tree | 411ec22db3a93f1a513e6670b7052149dc6abab2 | |
parent | 62a32a2e627c97d2a87ec6ed95befac76ef62e88 (diff) | |
download | samba-4fd56d5d1a64814d4f8bbcd291dcea2283850db3.tar.gz samba-4fd56d5d1a64814d4f8bbcd291dcea2283850db3.tar.bz2 samba-4fd56d5d1a64814d4f8bbcd291dcea2283850db3.zip |
r4393: Trivial bugfix for a silly bug
(This used to be commit ae3c329e9d718cdc011f8f291ccc68abad6b9cc7)
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index f69e6d1452..4eb5c88646 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -2162,6 +2162,9 @@ static NTSTATUS samr_GetMembersInAlias(struct dcesrv_call_state *dce_call, TALLO if (ret != 1) return NT_STATUS_INTERNAL_DB_CORRUPTION; + r->out.sids->num_sids = 0; + r->out.sids->sids = NULL; + el = ldb_msg_find_element(msgs[0], "member"); if (el != NULL) { @@ -2188,11 +2191,10 @@ static NTSTATUS samr_GetMembersInAlias(struct dcesrv_call_state *dce_call, TALLO if (sids[i].sid == NULL) return NT_STATUS_INTERNAL_DB_CORRUPTION; } + r->out.sids->num_sids = el->num_values; + r->out.sids->sids = sids; } - r->out.sids->num_sids = el->num_values; - r->out.sids->sids = sids; - return NT_STATUS_OK; } |