net-snmp 3.8.3 → 3.8.4

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 +2 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3227,6 +3227,10 @@ Example programs are included under the module's `example` directory.
3227
3227
 
3228
3228
  * Fix incorrect user level assignment
3229
3229
 
3230
+ ## Version 3.8.4 - 29/09/2022
3231
+
3232
+ * Fix IpAddress byte array set request handling
3233
+
3230
3234
  # License
3231
3235
 
3232
3236
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/index.js CHANGED
@@ -4603,7 +4603,8 @@ Agent.prototype.castSetValue = function ( type, value ) {
4603
4603
 
4604
4604
  case ObjectType.IpAddress:
4605
4605
  // A 32-bit internet address represented as OCTET STRING of length 4
4606
- if ( typeof value != "string" || value.length != 4 ) {
4606
+ var bytes = value.split(".");
4607
+ if ( typeof value != "string" || bytes.length != 4 ) {
4607
4608
  throw new Error("Invalid IpAddress", value);
4608
4609
  }
4609
4610
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.8.3",
3
+ "version": "3.8.4",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {