# HG changeset patch # User Brendan Cully # Date 2010-02-07 23:01:08 # Node ID 9b87c5f4c634b9718940e6380a62d7fcf1bcddaf # Parent 1ddb0ae26a55989b72bed9239ef641000931ed7d zeroconf: use DNS length field to safely skip unknown record types diff --git a/hgext/zeroconf/Zeroconf.py b/hgext/zeroconf/Zeroconf.py --- a/hgext/zeroconf/Zeroconf.py +++ b/hgext/zeroconf/Zeroconf.py @@ -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)