mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 00:19:01 +00:00
Avoid crash in rpc.lua due to packing nmap.clock (a float) as integer
This commit is contained in:
@@ -339,7 +339,7 @@ Comm = {
|
||||
elseif auth.type == Portmap.AuthType.UNIX then
|
||||
packet = packet .. Util.marshall_int32(auth.type)
|
||||
local blob = (
|
||||
Util.marshall_int32(nmap.clock()) --time
|
||||
Util.marshall_int32(math.floor(nmap.clock())) --time
|
||||
.. Util.marshall_vopaque(auth.hostname or 'localhost')
|
||||
.. Util.marshall_int32(auth.uid or 0)
|
||||
.. Util.marshall_int32(auth.gid or 0)
|
||||
|
||||
Reference in New Issue
Block a user