summaryrefslogtreecommitdiff
path: root/pysnmp/entity
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2018-04-21 23:16:17 +0200
committerIlya Etingof <etingof@gmail.com>2018-04-21 23:16:34 +0200
commitf1e9f131412949dcf9b906c89d809cb834f081f6 (patch)
tree7c40036211d14dc91fe76e70f52e5b87b89c765c /pysnmp/entity
parent8935532ee70df78ea73741347c81b6b6d5fea57a (diff)
downloadpysnmp-git-f1e9f131412949dcf9b906c89d809cb834f081f6.tar.gz
fix potential infinite loop in GETBULK response builder
Diffstat (limited to 'pysnmp/entity')
-rw-r--r--pysnmp/entity/rfc3413/cmdrsp.py2
1 files changed, 1 insertions, 1 deletions
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))