mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fixed a nil-pointer exception caused by certain printers and OS X machines. An array in the result was set to nil instead of 0-length, which was unexpected.
This commit is contained in:
parent
2035b82dfd
commit
11ad4fafd5
1 changed files with 5 additions and 0 deletions
|
|
@ -3339,6 +3339,11 @@ function samr_enum_groups(host)
|
|||
return false, "Couldn't enumerate groups: " .. enumaliases_result
|
||||
end
|
||||
|
||||
-- If it returned a nil array
|
||||
if(enumaliases_result['sam'] == nil or enumeliases_result['sam']['entries'] == nil) then
|
||||
return false, "ERROR: No groups returned by samr_EnumDomainAliases()"
|
||||
end
|
||||
|
||||
-- Print some output
|
||||
stdnse.print_debug(1, "MSRPC: Found %d groups in %s", #enumaliases_result['sam']['entries'], domain)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue