summaryrefslogtreecommitdiff
path: root/lib/resolv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r--lib/resolv.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index ca4c7581ba..bfff58b035 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -572,13 +572,13 @@ class Resolv
def extract_resources(msg, name, typeclass) # :nodoc:
if typeclass < Resource::ANY
n0 = Name.create(name)
- msg.each_answer {|n, ttl, data|
+ msg.each_resource {|n, ttl, data|
yield data if n0 == n
}
end
yielded = false
n0 = Name.create(name)
- msg.each_answer {|n, ttl, data|
+ msg.each_resource {|n, ttl, data|
if n0 == n
case data
when typeclass
@@ -590,7 +590,7 @@ class Resolv
end
}
return if yielded
- msg.each_answer {|n, ttl, data|
+ msg.each_resource {|n, ttl, data|
if n0 == n
case data
when typeclass