1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 05:09:14 +00:00

Fixed a couple formatting bugs in the smb-* libraries that come up when debugging/verbose is disabled

This commit is contained in:
ron
2010-02-20 15:03:11 +00:00
parent 62155f108f
commit 3a3535e07c
3 changed files with 13 additions and 6 deletions

View File

@@ -494,7 +494,14 @@ function format_output(status, data, indent)
return nil
end
return format_output_sub(status, data, indent)
local result = format_output_sub(status, data, indent)
-- Check for an empty result
if(result == nil or #result == "" or result == "\n" or result == " \n") then
return nil
end
return result
end
--- This function allows you to create worker threads that may perform