1
0
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:
dmiller
2016-08-19 17:37:30 +00:00
parent 14cfbc6084
commit 8f3bbf33a5

View File

@@ -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)