Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible infinite loop in responder_lite #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix possible infinite loop in responder_lite
When querying with asyncio pysnmp with uneven number of oids an infinite loop occurres
  • Loading branch information
thekafkaf authored Jun 17, 2020
commit 71d708cf1d9d9f73e98de3818db718c5be3dc8eb
2 changes: 1 addition & 1 deletion snmpsim/commands/responder_lite.py
Original file line number Diff line number Diff line change
@@ -299,7 +299,7 @@ def get_bulk_handler(
R = max(len(req_var_binds) - N, 0)

if R:
M = min(M, args.max_var_binds / R)
M = min(M, int(args.max_var_binds / R))

if N:
rsp_var_binds = read_next_vars(req_var_binds[:N])