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:
@@ -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 ""),
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user