summaryrefslogtreecommitdiff
path: root/lib/resolv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r--lib/resolv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index 6dac504747..edc17c2f19 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -1155,7 +1155,7 @@ class Resolv
len, = self.get_unpack('n')
save_limit = @limit
@limit = @index + len
- d = yield len
+ d = yield(len)
if @index < @limit
raise DecodeError.new("junk exist")
elsif @limit < @index