vultr: fix out of bounds access

This commit is contained in:
Girish Ramakrishnan
2021-06-05 22:12:11 -07:00
parent b579f7ae90
commit b2856bc8e0
+1 -1
View File
@@ -166,7 +166,7 @@ function upsert(domainObject, location, type, values, callback) {
if (result.statusCode === 403 || result.statusCode === 401) return iteratorCallback(new BoxError(BoxError.ACCESS_DENIED, formatError(result)));
if (result.statusCode !== 204) return iteratorCallback(new BoxError(BoxError.EXTERNAL_ERROR, formatError(result)));
recordIds.push(records[i].id);
recordIds.push(records[i-1].id);
return iteratorCallback(null);
});