summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt1
-rw-r--r--pysnmp/entity/rfc3413/cmdrsp.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 7639e71c..6d51f9c6 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -19,6 +19,7 @@ Revision 4.4.5, released 2018-04-XX
- Fixed zero SNMPv3 boots/time values put in SNMPv3 TRAP messages
- Fixed broken InetAddressType rendering caused by a pyasn1 regression
- Fixed typo in RFC1158 module
+- Fixed possible infinite loop in GETBULK response PDU builder
Revision 4.4.4, released 2018-01-03
-----------------------------------
diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py
index 3f99f004..94b4d45b 100644
--- a/pysnmp/entity/rfc3413/cmdrsp.py
+++ b/pysnmp/entity/rfc3413/cmdrsp.py
@@ -289,7 +289,7 @@ class BulkCommandResponder(CommandResponderBase):
R = max(len(reqVarBinds) - N, 0)
if R:
- M = min(M, self.maxVarBinds / R)
+ M = min(M, self.maxVarBinds // R)
debug.logger & debug.flagApp and debug.logger('handleMgmtOperation: N %d, M %d, R %d' % (N, M, R))