vultr: fix out of bounds access
This commit is contained in:
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user