summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_idmap.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-11 17:42:48 +0200
committerVolker Lendecke <vl@samba.org>2008-07-11 17:53:24 +0200
commitebb2d70a607cf33f3d2084d715c2d9d4329f2e7b (patch)
treeb13f99517ecd3f3b31cfa14a992c7251ac05456a /source3/winbindd/winbindd_idmap.c
parent6c3c068716c9b7a3a7fe041fc605bcd00b376ec9 (diff)
downloadsamba-ebb2d70a607cf33f3d2084d715c2d9d4329f2e7b.tar.gz
samba-ebb2d70a607cf33f3d2084d715c2d9d4329f2e7b.tar.bz2
samba-ebb2d70a607cf33f3d2084d715c2d9d4329f2e7b.zip
Revert "Make use of ADD_TO_ARRAY"
This reverts commit 81f334bd6da601a040f754c46705cfa2fd4f8c45. (This used to be commit d4d106776af3f475d46a4dd78794b7b48a3572af)
Diffstat (limited to 'source3/winbindd/winbindd_idmap.c')
-rw-r--r--source3/winbindd/winbindd_idmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_idmap.c b/source3/winbindd/winbindd_idmap.c
index 98f8548083..3c7aa2d0c2 100644
--- a/source3/winbindd/winbindd_idmap.c
+++ b/source3/winbindd/winbindd_idmap.c
@@ -224,7 +224,7 @@ enum winbindd_result winbindd_dual_sids2xids(struct winbindd_domain *domain,
sids = (DOM_SID *)state->request.extra_data.data;
num = state->request.extra_len / sizeof(DOM_SID);
- ids = TALLOC_ARRAY(state->mem_ctx, struct id_map *, num);
+ ids = TALLOC_ZERO_ARRAY(state->mem_ctx, struct id_map *, num + 1);
if ( ! ids) {
DEBUG(0, ("Out of memory!\n"));
return WINBINDD_ERROR;
@@ -239,7 +239,7 @@ enum winbindd_result winbindd_dual_sids2xids(struct winbindd_domain *domain,
ids[i]->sid = &sids[i];
}
- result = idmap_sids_to_unixids(ids, num);
+ result = idmap_sids_to_unixids(ids);
if (NT_STATUS_IS_OK(result)) {