1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 05:39:01 +00:00

fixed bug that would result in a crash when the browser service would return

an empty result.
This commit is contained in:
patrik
2012-08-30 18:39:49 +00:00
parent 0a0db9f835
commit fe25ec912f

View File

@@ -79,7 +79,7 @@ action = function( host )
instanceList = mssql.Helper.GetDiscoveredInstances( host )
end
for _, instance in ipairs(instanceList) do
for _, instance in ipairs(instanceList or {}) do
local name = instance:GetName():match("^[^\\]*\\(.*)$")
if ( name ) then
local co = stdnse.new_thread(discoverDAC, host, name, result)