Fixed Intel AMT IDER exception.
Ylian Saint-Hilaire committed
Oct 25, 2022 at 14:04 UTC
60af1b6a24fad0a5485ec1d8b0b470c74f4d1d11
2 files changed
+2
-2
agents/modules_meshcmd/amt-ider.js
+1
-1
@@ -98,7 +98,7 @@ module.exports = function CreateAmtRemoteIder() {
98
// Private method
99
obj.ProcessData = function (data) {
100
obj.bytesFromAmt += data.length;
101
- if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); }
101
+ if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); }
102
if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex'));
103
104
// Process as many commands as possible
amt/amt-ider-module.js
+1
-1
@@ -152,7 +152,7 @@ module.exports.CreateAmtRemoteIder = function (webserver, meshcentral) {
152
obj.ProcessData = function (data) {
153
data = Buffer.from(data, 'binary');
154
obj.bytesFromAmt += data.length;
155
- if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); }
155
+ if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); }
156
if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex'));
157
158
// Process as many commands as possible