diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-07-26 10:50:22 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-08 15:09:54 +0200 |
commit | 5e1e33114c3aa62221ac1bf82eaaf2b3a2ac1efa (patch) | |
tree | 66cfe04c0f050b8a013fc0949ca297037ada1781 /source4/winbind/wb_sids2xids.c | |
parent | ab2ca882e1bf0674bd06fd4009caedcca2410b73 (diff) | |
download | samba-5e1e33114c3aa62221ac1bf82eaaf2b3a2ac1efa.tar.gz samba-5e1e33114c3aa62221ac1bf82eaaf2b3a2ac1efa.tar.xz samba-5e1e33114c3aa62221ac1bf82eaaf2b3a2ac1efa.zip |
s4-winbind: added count argument to wb_sids2xids_recv()
this allows callers to know how many SIDs were mapped
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/winbind/wb_sids2xids.c')
-rw-r--r-- | source4/winbind/wb_sids2xids.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/winbind/wb_sids2xids.c b/source4/winbind/wb_sids2xids.c index c966c40dc07..01ad64580b6 100644 --- a/source4/winbind/wb_sids2xids.c +++ b/source4/winbind/wb_sids2xids.c @@ -74,7 +74,7 @@ struct composite_context *wb_sids2xids_send(TALLOC_CTX *mem_ctx, } NTSTATUS wb_sids2xids_recv(struct composite_context *ctx, - struct id_map **ids) + struct id_map **ids, unsigned *count) { NTSTATUS status = composite_wait(ctx); struct sids2xids_state *state = talloc_get_type(ctx->private_data, @@ -86,6 +86,9 @@ NTSTATUS wb_sids2xids_recv(struct composite_context *ctx, * the results are filled into the pointers the caller * supplied */ *ids = state->ids; + if (count != NULL) { + *count = state->count; + } talloc_free(ctx); return status; |