mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
fix: test: Handle large query IDs in xfer/ans5 properly
Previously, the server would crash if it received a query with an ID
close to 65535 in the badmessageid case, as adding 50 to it would not
fit in uint16.
This was an oversight in porting it from Perl to Python in
f9ed3650ac.
Fixes #6025.
Merge branch 'stepan/fix-xfer-large-qid' into 'main'
See merge request isc-projects/bind9!12097
This commit is contained in:
commit
cdad654ef8
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ class Add50ToMessageIdFromSecondResponse(ResponseHandlerWrapper):
|
|||
assert isinstance(
|
||||
response_action, DnsResponseSend
|
||||
), "Add50ToMessageIdFromSecondResponse can only wrap handlers that yield DnsResponseSend from the second response onward"
|
||||
response_action.response.id += 50
|
||||
response_action.response.id = (response_action.response.id + 50) % 65536
|
||||
else:
|
||||
self._first_yielded = True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue