Skip to content

Commit 7e6e154

Browse files
committed
Fix null pointer dereference
1 parent a07656f commit 7e6e154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/sap/sap_mgmt_con_instanceproperties.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def enum_instance(rhost)
237237
print_good("#{rhost}:#{rport} [SAP] Unprotected Webmethods :::")
238238
webmethods_arr.each do | webm |
239239
# Only add webmethods not found in protectedweb_arr
240-
webmethods_output << webm if not protectedweb_arr.include?(webm)
240+
webmethods_output << webm unless protectedweb_arr && protectedweb_arr.include?(webm)
241241
end
242242
print_status("#{webmethods_output.join(',')}") if webmethods_output
243243
report_note(:host => rhost,

0 commit comments

Comments
 (0)