Skip to content

Commit 17de7be

Browse files
committed
Fix exception handling block
1 parent 505de0b commit 17de7be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/auxiliary/scanner/openvas/openvas_omp_login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def run_host(ip)
4343
each_user_pass do |user, pass|
4444
do_login(user, pass)
4545
end
46-
end
4746
rescue ::Rex::ConnectionError
4847
rescue ::Exception => e
4948
vprint_error("#{msg} #{e.to_s} #{e.backtrace}")
49+
end
5050
end
5151

5252
def omp_send(data=nil, con=true)

modules/auxiliary/scanner/openvas/openvas_otp_login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def run_host(ip)
4343
each_user_pass do |user, pass|
4444
do_login(user, pass)
4545
end
46-
end
4746
rescue ::Rex::ConnectionError
4847
rescue ::Exception => e
4948
vprint_error("#{msg} #{e.to_s} #{e.backtrace}")
49+
end
5050
end
5151

5252
def otp_send(data=nil, con=true)

0 commit comments

Comments
 (0)