Skip to content

Commit 76bfaa6

Browse files
committed
Fix dumb inverted logic. Thanks, rspec!
1 parent 8b8ec59 commit 76bfaa6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/msf/core/db_manager/exploit_attempt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def do_report_failure_or_success(opts)
119119
username = opts[:username]
120120
mname = opts[:module]
121121

122-
if ! vuln.nil?
122+
if vuln.nil?
123123
ref_names = mrefs.map { |ref|
124124
if ref.respond_to?(:ctx_id) and ref.respond_to?(:ctx_val)
125125
"#{ref.ctx_id}-#{ref.ctx_val}"

spec/support/shared/examples/msf/db_manager/exploit_attempt.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
context 'without a vuln' do
4646
let(:vuln) { nil }
47+
4748
specify do
4849
expect {
4950
report_exploit_success

0 commit comments

Comments
 (0)