summaryrefslogtreecommitdiff
path: root/lib/dnspython/dns/message.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dnspython/dns/message.py')
-rw-r--r--lib/dnspython/dns/message.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/dnspython/dns/message.py b/lib/dnspython/dns/message.py
index a124a3e177..cf29133934 100644
--- a/lib/dnspython/dns/message.py
+++ b/lib/dnspython/dns/message.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2007, 2009, 2010 Nominum, Inc.
+# Copyright (C) 2001-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
@@ -34,6 +34,7 @@ import dns.rdatatype
import dns.rrset
import dns.renderer
import dns.tsig
+import dns.wiredata
class ShortHeader(dns.exception.FormError):
"""Raised if the DNS packet passed to from_wire() is too short."""
@@ -577,7 +578,7 @@ class _WireReader(object):
def __init__(self, wire, message, question_only=False,
one_rr_per_rrset=False):
- self.wire = wire
+ self.wire = dns.wiredata.maybe_wrap(wire)
self.message = message
self.current = 0
self.updating = False