Merge pull request #2806 from nzalev/fix-2763

Fix undeclared variable (#2763)
This commit is contained in:
Ylian Saint-Hilaire 2021-06-21 22:21:25 -07:00 committed by GitHub
commit 51de8dd1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,7 @@ module.exports.CreateAmtRedirect = function (module, domain, user, webserver, me
var status = obj.amtaccumulator.charCodeAt(1); var status = obj.amtaccumulator.charCodeAt(1);
var authType = obj.amtaccumulator.charCodeAt(4); var authType = obj.amtaccumulator.charCodeAt(4);
var authData = []; var authData = [];
for (i = 0; i < authDataLen; i++) { authData.push(obj.amtaccumulator.charCodeAt(9 + i)); } for (var i = 0; i < authDataLen; i++) { authData.push(obj.amtaccumulator.charCodeAt(9 + i)); }
var authDataBuf = obj.amtaccumulator.substring(9, 9 + authDataLen); var authDataBuf = obj.amtaccumulator.substring(9, 9 + authDataLen);
cmdsize = 9 + authDataLen; cmdsize = 9 + authDataLen;
if (authType == 0) { if (authType == 0) {