diff --git a/lib/client/protocols/arrays/share.js b/lib/client/protocols/arrays/share.js index 81a817140..f89b6f838 100644 --- a/lib/client/protocols/arrays/share.js +++ b/lib/client/protocols/arrays/share.js @@ -207,6 +207,9 @@ class ShareArray { return Promise.resolve([]); } else if (secrets != null && Array.isArray(secrets)) { const promised_array = []; + let sender_list = [sender] + const parameters = [receivers_list, sender_list, threshold, Zp, share_id]; + [receivers_list, sender_list, threshold, Zp, share_id] = util.sanitize_array_params.bind(null, jiff).apply(null, parameters); for (let j = 0; j < secrets.length; j++) { promised_array.push(this.share_array_single_sender(jiff, secrets[j], threshold, receivers_list, sender, Zp, share_id + ':' + j)); }