Skip to content

Commit

Permalink
Issue 43: HTTPS reads after RD end
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlandstrom committed Oct 17, 2022
1 parent d1d1f38 commit becc233
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit becc233

Please sign in to comment.