From 8f3bbf33a524334c7d7581dfa83c3561ec3a2898 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 19 Aug 2016 17:37:30 +0000 Subject: [PATCH] Avoid crash in rpc.lua due to packing nmap.clock (a float) as integer --- nselib/rpc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/rpc.lua b/nselib/rpc.lua index 9f7c03e2e..167e9c6e5 100644 --- a/nselib/rpc.lua +++ b/nselib/rpc.lua @@ -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)