mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 04:09:01 +00:00
Lua 5.2 fixed from Daniel Miller.
http://seclists.org/nmap-dev/2012/q2/525
This commit is contained in:
@@ -3362,8 +3362,8 @@ Util =
|
||||
-- @return the amount of pad needed to be divideable by 4
|
||||
CalcFillBytes = function(length)
|
||||
-- calculate fill bytes
|
||||
if math.mod( length, 4 ) ~= 0 then
|
||||
return (4 - math.mod( length, 4))
|
||||
if math.fmod( length, 4 ) ~= 0 then
|
||||
return (4 - math.fmod( length, 4))
|
||||
else
|
||||
return 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user