mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
zeroconf: use DNS length field to safely skip unknown record types
This commit is contained in:
parent
d5437ba5b0
commit
5551943cd9
@ -560,7 +560,7 @@ class DNSIncoming(object):
|
||||
#
|
||||
#print "UNKNOWN TYPE = " + str(info[0])
|
||||
#raise BadTypeInNameException
|
||||
break
|
||||
self.offset += info[3]
|
||||
|
||||
if rec is not None:
|
||||
self.answers.append(rec)
|
||||
|
Loading…
Reference in New Issue
Block a user