Skip to content

Commit 06fd1ea

Browse files
committed
Address more style issues
1 parent 17b0560 commit 06fd1ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/auxiliary/fuzzers/ntp/ntp_protocol_fuzzer.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ def fuzz_version_mode(host, short)
179179
def probe(host, port, message)
180180
replies = []
181181
udp_sock.sendto(message, host, port, 0)
182-
while (r = udp_sock.recvfrom(65535, datastore['WAIT'] / 1000.0) && r[1])
183-
replies << r
182+
reply = udp_sock.recvfrom(65535, datastore['WAIT'] / 1000.0)
183+
while reply && reply[1]
184+
replies << reply
185+
reply = udp_sock.recvfrom(65535, datastore['WAIT'] / 1000.0)
184186
end
185187
replies
186188
end

0 commit comments

Comments
 (0)