Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ruby/stdlib/resolv.rb
Original file line number Diff line number Diff line change
@@ -576,13 +576,13 @@ def make_tcp_requester(host, port) # :nodoc:
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
@@ -594,7 +594,7 @@ def extract_resources(msg, name, typeclass) # :nodoc:
end
}
return if yielded
msg.each_answer {|n, ttl, data|
msg.each_resource {|n, ttl, data|
if n0 == n
case data
when typeclass

0 comments on commit 9187c5e

Please sign in to comment.