Skip to content

Commit c58e9ac

Browse files
committed
Fix variable typos in rfrecv related methods.
1 parent df181c1 commit c58e9ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/msf/core/post/hardware/rftransceiver/rftransceiver.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def rfxmit(data, repeat=-1, offset=-1)
135135
def rfrecv(timeout = -1, blocksize = -1)
136136
return "" if not is_rf?
137137
self.index ||= 0
138+
opts = {}
138139
opts["timeout"] = timeout if not timeout == -1
139140
opts["blocksize"] = blocksize if not blocksize == -1
140141
client.rftransceiver.rfrecv(self.index, opts)

lib/rex/post/hwbridge/extensions/rftransceiver/rftransceiver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def rfrecv(idx, opt={})
106106
end
107107
if opt.has_key? "blocksize"
108108
request += "&" if not first
109-
request += "blocksize=#{blocksize}"
109+
request += "blocksize=#{opt['blocksize']}"
110110
end
111111
end
112112
data = client.send_request(request)

0 commit comments

Comments
 (0)