Skip to content

Commit 92752de

Browse files
committed
Fix undefined method error
[FixRM rapid7#8324]
1 parent 77942f0 commit 92752de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/oracle/spy_sid.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def run_host(ip)
4242
'version' => '1.1',
4343
}, 5)
4444

45-
if ( res.body =~ /SERVICE_NAME=/ )
45+
if res and res.body =~ /SERVICE_NAME=/
4646
select(nil,nil,nil,2)
4747
sid = res.body.scan(/SERVICE_NAME=([^\)]+)/)
4848
report_note(

0 commit comments

Comments
 (0)