Skip to content

Commit 35b15b6

Browse files
committed
Fix undefined method error
[FixRM rapid7#8322]
1 parent ea78e83 commit 35b15b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/auxiliary/scanner/sap/sap_mgmt_con_instanceproperties.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ def enum_instance(rhost)
9191
}
9292
}, 15)
9393

94+
if res.nil?
95+
print_error("#{rhost}:#{rport} [SAP] Unable to connect")
96+
return
97+
end
98+
9499
if res.code == 200
95100
body = res.body
96101
if body.match(/<property>CentralServices<\/property><propertytype>Attribute<\/propertytype><value>([^<]+)<\/value>/)

0 commit comments

Comments
 (0)