Skip to content

Commit d77cb17

Browse files
committed
Fix return yarddoc
1 parent 678104c commit d77cb17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rex/proto/dcerpc/svcctl/packet.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def error_code(raw_error)
3535
# @param rhost [String] the target host.
3636
# @param access [Fixnum] the access flags requested.
3737
#
38-
# @return [String, Integer] the handle to the service control manager or nil if
38+
# @return [Array<String,Integer>] the handle to the service control manager or nil if
3939
# the call is not successful and the Windows error code
4040
def openscmanagerw(rhost, access = SC_MANAGER_ALL_ACCESS)
4141
scm_handle = nil
@@ -56,7 +56,7 @@ def openscmanagerw(rhost, access = SC_MANAGER_ALL_ACCESS)
5656
print_error("#{peer} - Error getting scm handle: #{e}")
5757
end
5858

59-
return scm_handle, scm_status
59+
[scm_handle, scm_status]
6060
end
6161

6262
# Calls CreateServiceW() to create a system service. Returns a handle to

0 commit comments

Comments
 (0)