From 60af1b6a24fad0a5485ec1d8b0b470c74f4d1d11 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 25 Oct 2022 14:04:43 -0700 Subject: [PATCH] Fixed Intel AMT IDER exception. --- agents/modules_meshcmd/amt-ider.js | 2 +- amt/amt-ider-module.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/modules_meshcmd/amt-ider.js b/agents/modules_meshcmd/amt-ider.js index 072fa963..98fdb12b 100644 --- a/agents/modules_meshcmd/amt-ider.js +++ b/agents/modules_meshcmd/amt-ider.js @@ -98,7 +98,7 @@ module.exports = function CreateAmtRemoteIder() { // Private method obj.ProcessData = function (data) { obj.bytesFromAmt += data.length; - if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); } + if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); } if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex')); // Process as many commands as possible diff --git a/amt/amt-ider-module.js b/amt/amt-ider-module.js index 78be7d36..4808482e 100644 --- a/amt/amt-ider-module.js +++ b/amt/amt-ider-module.js @@ -152,7 +152,7 @@ module.exports.CreateAmtRemoteIder = function (webserver, meshcentral) { obj.ProcessData = function (data) { data = Buffer.from(data, 'binary'); obj.bytesFromAmt += data.length; - if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); } + if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); } if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex')); // Process as many commands as possible