mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix some swapped return values
This commit is contained in:
parent
7c72319ab5
commit
d66dd69df2
2 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ action = function(host, port)
|
|||
[ipp.IPP.PrinterState.IPP_PRINTER_PROCESSING] = "Processing",
|
||||
[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, {
|
||||
name = printer.name,
|
||||
("DNS-SD Name: %s"):format(printer.dns_sd_name or ""),
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ action = function(host, port)
|
|||
return nil
|
||||
end
|
||||
|
||||
local pos, realport = string.unpack(">I4", data)
|
||||
local realport, pos = string.unpack(">I4", data)
|
||||
data = string.sub(data, pos)
|
||||
|
||||
local nodes = stdnse.output_table()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue