net-snmp 3.12.0 → 3.12.1

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 +3 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3381,6 +3381,10 @@ Example programs are included under the module's `example` directory.
3381
3381
 
3382
3382
  * Add multiple socket listener support for agent and receiver
3383
3383
 
3384
+ ## Version 3.12.1 - 21/08/2024
3385
+
3386
+ * Fix SNMPv1 session walk infinite loop condition
3387
+
3384
3388
  # License
3385
3389
 
3386
3390
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/index.js CHANGED
@@ -2617,6 +2617,9 @@ function walkCb (req, error, varbinds) {
2617
2617
  if (! done)
2618
2618
  oid = varbinds[0][varbinds[0].length - 1].oid;
2619
2619
  } else {
2620
+ if (varbinds[0].type == ObjectType.EndOfMibView) {
2621
+ done = 1;
2622
+ }
2620
2623
  if (! done) {
2621
2624
  if (req.feedCb (varbinds)) {
2622
2625
  done = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {