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

Issue 43: HTTPS reads after RD end #44

Merged
merged 1 commit into from
Oct 26, 2022
Merged
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
3 changes: 2 additions & 1 deletion dnslib/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,7 @@ def __init__(self, priority, target, params):
@classmethod
def parse(cls,buffer,length):
try:
end = buffer.offset + length
priority, = buffer.unpack("!H")
target = []
while True:
Expand All @@ -1831,7 +1832,7 @@ def parse(cls,buffer,length):
seg = bytearray(buffer.get(n))
target.append(seg)
params = []
while buffer.remaining() > 0:
while buffer.offset < end:
k, = buffer.unpack("!H")
n, = buffer.unpack("!H")
v = bytearray(buffer.get(n))
Expand Down