# HG changeset patch # User Brendan Cully # Date 1265583668 -3600 # Node ID 9b87c5f4c634b9718940e6380a62d7fcf1bcddaf # Parent 1ddb0ae26a55989b72bed9239ef641000931ed7d zeroconf: use DNS length field to safely skip unknown record types diff -r 1ddb0ae26a55 -r 9b87c5f4c634 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)