net-snmp 3.9.7 → 3.9.8

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.
@@ -0,0 +1 @@
1
+ github: [markabrahams]
package/README.md CHANGED
@@ -3305,6 +3305,10 @@ Example programs are included under the module's `example` directory.
3305
3305
 
3306
3306
  * Add tolerance for reading malformed 32-bit unsigned integers
3307
3307
 
3308
+ ## Version 3.9.8 - 13/01/2024
3309
+
3310
+ * Fix subtree callback termination
3311
+
3308
3312
  # License
3309
3313
 
3310
3314
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/index.js CHANGED
@@ -2296,8 +2296,11 @@ function subtreeCb (req, varbinds) {
2296
2296
  }
2297
2297
  }
2298
2298
 
2299
- if (varbinds.length > 0)
2300
- req.feedCb (varbinds);
2299
+ if (varbinds.length > 0) {
2300
+ if (req.feedCb (varbinds)) {
2301
+ done = 1;
2302
+ }
2303
+ }
2301
2304
 
2302
2305
  if (done)
2303
2306
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.9.7",
3
+ "version": "3.9.8",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {