Skip to content

Commit 77c8dc2

Browse files
committed
Dont return nil from 'run'
1 parent fb309aa commit 77c8dc2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/auxiliary/admin/mssql/mssql_enum_sql_logins.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def run
5858

5959
# Get a list if sql server logins using SUSER_NAME()
6060
print_status("Setup to fuzz #{datastore['FuzzNum']} SQL Server logins.")
61-
print_status("Enumerating logins...")
61+
print_status('Enumerating logins...')
6262
sql_logins_list = get_sql_logins
63-
if sql_logins_list.nil? || sql_logins_list.length == 0
63+
if sql_logins_list.nil? || sql_logins_list.empty?
6464
print_error('Sorry, somethings went wrong - SQL Server logins were found.')
6565
disconnect
6666
return
@@ -92,7 +92,6 @@ def run
9292
end
9393

9494
disconnect
95-
return
9695
end
9796

9897
# Checks if user is a sysadmin

0 commit comments

Comments
 (0)