diff options
author | Ilya Etingof <etingof@gmail.com> | 2018-04-21 23:16:17 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2018-04-21 23:16:34 +0200 |
commit | f1e9f131412949dcf9b906c89d809cb834f081f6 (patch) | |
tree | 7c40036211d14dc91fe76e70f52e5b87b89c765c /pysnmp/entity | |
parent | 8935532ee70df78ea73741347c81b6b6d5fea57a (diff) | |
download | pysnmp-git-f1e9f131412949dcf9b906c89d809cb834f081f6.tar.gz |
fix potential infinite loop in GETBULK response builder
Diffstat (limited to 'pysnmp/entity')
-rw-r--r-- | pysnmp/entity/rfc3413/cmdrsp.py | 2 |
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)) |