net-snmp 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3219,6 +3219,10 @@ Example programs are included under the module's `example` directory.
3219
3219
 
3220
3220
  * Add bit string type to varbind reading
3221
3221
 
3222
+ ## Version 3.8.2 - 21/06/2022
3223
+
3224
+ * Fix PDU error status field writing
3225
+
3222
3226
  # License
3223
3227
 
3224
3228
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/index.js CHANGED
@@ -799,7 +799,7 @@ SimpleResponsePdu.prototype.toBuffer = function (writer) {
799
799
  writer.startSequence (this.type);
800
800
 
801
801
  writeInt32 (writer, ObjectType.Integer, this.id);
802
- writeInt32 (writer, this.errorStatus || 0);
802
+ writeInt32 (writer, ObjectType.Integer, this.errorStatus || 0);
803
803
  writeInt32 (writer, ObjectType.Integer, this.errorIndex || 0);
804
804
  writeVarbinds (writer, this.varbinds);
805
805
  writer.endSequence ();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.8.1",
3
+ "version": "3.8.2",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {