1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix some swapped return values

This commit is contained in:
dmiller
2017-03-25 13:29:52 +00:00
parent 7c72319ab5
commit d66dd69df2
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ action = function(host, port)
[ipp.IPP.PrinterState.IPP_PRINTER_PROCESSING] = "Processing", [ipp.IPP.PrinterState.IPP_PRINTER_PROCESSING] = "Processing",
[ipp.IPP.PrinterState.IPP_PRINTER_STOPPED] = "Stopped", [ipp.IPP.PrinterState.IPP_PRINTER_STOPPED] = "Stopped",
} }
local pos, state = string.unpack(">I4", printer.state) local state = string.unpack(">I4", printer.state)
table.insert(output, { table.insert(output, {
name = printer.name, name = printer.name,
("DNS-SD Name: %s"):format(printer.dns_sd_name or ""), ("DNS-SD Name: %s"):format(printer.dns_sd_name or ""),

View File

@@ -49,7 +49,7 @@ action = function(host, port)
return nil return nil
end end
local pos, realport = string.unpack(">I4", data) local realport, pos = string.unpack(">I4", data)
data = string.sub(data, pos) data = string.sub(data, pos)
local nodes = stdnse.output_table() local nodes = stdnse.output_table()