Skip to content

Commit db3699a

Browse files
committed
Carry on if the record can't be cached
1 parent 982401e commit db3699a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/proto/dns/cached_resolver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def send(argument, type = Dnsruby::Types::A, cls = Dnsruby::Classes::IN)
6262
resolved = super(resolve, type)
6363
req.instance_variable_set(:@answer, (req.answer + resolved.answer).uniq)
6464
resolved.answer.each do |ans|
65-
self.cache.cache_record(ans)
65+
self.cache.cache_record(ans) rescue nil
6666
end
6767
end
6868
# Finalize answers in response

0 commit comments

Comments
 (0)