From 14f439a29ed873e4ec69bffff152e8d1ea463069 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 29 Jun 2018 02:53:40 +0000 Subject: [PATCH] Use integer division for timestamps. Fixes #1255 --- nselib/msrpctypes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/msrpctypes.lua b/nselib/msrpctypes.lua index 238799f05..441a2dad7 100644 --- a/nselib/msrpctypes.lua +++ b/nselib/msrpctypes.lua @@ -1186,7 +1186,7 @@ function unmarshall_NTTIME(data, pos) end if(time ~= 0) then - time = (time / 10000000) - 11644473600 + time = (time // 10000000) - 11644473600 end stdnse.debug4("MSRPC: Leaving unmarshall_NTTIME()") @@ -1269,7 +1269,7 @@ function unmarshall_hyper(data, pos) stdnse.debug4("MSRPC: Entering unmarshall_hyper()") pos, result = unmarshall_int64(data, pos) - result = result / -10000000 + result = result // -10000000 stdnse.debug4("MSRPC: Leaving unmarshall_hyper()") return pos, result