zeroconf: use DNS length field to safely skip unknown record types

This commit is contained in:
Brendan Cully 2010-02-08 00:01:08 +01:00
parent d5437ba5b0
commit 5551943cd9

View File

@ -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)