Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #433 from jinankjain/fix432
Browse files Browse the repository at this point in the history
fix #432: Fix the regression present in v0.33
  • Loading branch information
Jonathan Claudius authored Feb 26, 2018
2 parents 6f74048 + 454c2df commit c9e57e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ssh_scan/scan_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ def scan_target(socket, opts)
begin
Timeout::timeout(timeout) {
stdin, stdout, stderr, wait_thr = Open3.popen3('ssh-keyscan', '-t', 'rsa,dsa', '-p', port.to_s, target)
output = stdout.gets(nil)
output = stdout.gets(nil) if port.nil?
stdout.close
stderr.gets(nil)
output = stderr.gets(nil) if !port.nil?
stderr.close
exit_code = wait_thr.value
}
Expand Down

0 comments on commit c9e57e4

Please sign in to comment.