zeroconf: use DNS length field to safely skip unknown record types
authorBrendan Cully <brendan@kublai.com>
Mon, 08 Feb 2010 00:01:08 +0100
changeset 10387 9b87c5f4c634
parent 10386 1ddb0ae26a55
child 10388 07bd7608a0ea
zeroconf: use DNS length field to safely skip unknown record types
hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py	Sun Feb 07 19:39:29 2010 +0100
+++ b/hgext/zeroconf/Zeroconf.py	Mon Feb 08 00:01:08 2010 +0100
@@ -560,7 +560,7 @@
 				#
 				#print "UNKNOWN TYPE = " + str(info[0])
 				#raise BadTypeInNameException
-				break
+				self.offset += info[3]
 
 			if rec is not None:
 				self.answers.append(rec)