diff --git a/io/snmp/package.json b/io/snmp/package.json index 3f19cb1b..1c21dbd8 100644 --- a/io/snmp/package.json +++ b/io/snmp/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-snmp", - "version" : "1.0.3", + "version" : "1.0.4", "description" : "A Node-RED node that gets and sets SNMP oid values. Supports v1, v2c and v3", "dependencies" : { "net-snmp" : "^3.8.2" diff --git a/io/snmp/snmp.js b/io/snmp/snmp.js index a50687bc..d44c18ab 100644 --- a/io/snmp/snmp.js +++ b/io/snmp/snmp.js @@ -440,6 +440,7 @@ module.exports = function (RED) { node.on("input", function (msg) { const oids = node.oids || msg.oid; const { host, sessionid, user, options } = prepareSnmpOptions(node, msg); + const response = []; function feedCb(varbinds) { for (let i = 0; i < varbinds.length; i++) { if (SNMP.isVarbindError(varbinds[i])) {