changeset 10387:9b87c5f4c634

zeroconf: use DNS length field to safely skip unknown record types
author Brendan Cully <brendan@kublai.com>
date Mon, 08 Feb 2010 00:01:08 +0100
parents 1ddb0ae26a55
children 07bd7608a0ea
files hgext/zeroconf/Zeroconf.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)